A WebSocket server for sending image data. More...
Inherits INativeHandle.
Public Member Functions | |
| Server (IPAddress ipAddress, int port) | |
| Constructor. Images are not converted before sending (raw). | |
| Server (IPAddress ipAddress, int port, Converter converter) | |
| Constructor. Images are converted according to the given converter before sending. | |
| void | Dispose () |
| IDisposable implementation. | |
| void | SendSync (Image image) |
| Sends an image synchronously. The image will be copied/converted and put on a queue. Once the image was sent the method will return. | |
| void | SendAsync (Image image) |
| Sends an image asynchronously. The image will be copied/converted and put on a queue. After that the function will return immediately. | |
Protected Member Functions | |
| virtual void | Dispose (bool disposing) |
| IDisposable helper function. | |
Events | |
| NativeHandleEventDelegate | ObjectDisposing |
| Raised when this object is about to be disposed via the IDisposable.Dispose method. | |
Events inherited from INativeHandle | |
| NativeHandleEventDelegate | ObjectDisposing |
| Raised when this object is about to be disposed via the IDisposable.Dispose method. | |
A WebSocket server for sending image data.
Constructor. Images are not converted before sending (raw).
| ipAddress | The IP-Address for the server. Example: 169.254.0.1. |
| port | The port for the server. Example: 1112 |
| ArgumentNullException | When ipAddress is null. |
| CvbException | When an error during server creation occurs. |
Constructor. Images are converted according to the given converter before sending.
| ipAddress | The IP-Address for the server. Example: 169.254.0.1. |
| port | The port for the server. Example: 1112 |
| converter | Converter to use. |
| ArgumentNullException | When ipAddress or converter is null. |
| CvbException | When an error during server creation occurs. |
|
protectedvirtual |
IDisposable helper function.
| disposing |
| void SendAsync | ( | Image | image | ) |
Sends an image asynchronously. The image will be copied/converted and put on a queue. After that the function will return immediately.
| image | Image to send. |
| ArgumentNullException | When image is null. |
| CvbException | When an error during sending occurs. |
| void SendSync | ( | Image | image | ) |
Sends an image synchronously. The image will be copied/converted and put on a queue. Once the image was sent the method will return.
| image | Image to send. |
| ArgumentNullException | When image is null. |
| CvbException | When an error during sending occurs. |
| NativeHandleEventDelegate ObjectDisposing |
Raised when this object is about to be disposed via the IDisposable.Dispose method.
This event is raised right before this object is disposed. The dispose itself cannot be canceled.