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). More... | |
Server (IPAddress ipAddress, int port, Converter converter) | |
Constructor. Images are converted according to the given converter before sending. More... | |
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. More... | |
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. More... | |
Protected Member Functions | |
virtual void | Dispose (bool disposing) |
IDisposable helper function. More... | |
Properties | |
IntPtr | Handle [get] |
Native handle of the Finder. | |
bool | IsDisposed [get] |
Gets if the native handle has been disposed. | |
IPAddress | IPAddress [get] |
The IP address of the server. | |
int | Port [get] |
The port of the server. | |
int | ActiveConnections [get] |
Number of active connections. | |
Properties inherited from INativeHandle | |
IntPtr | Handle [get] |
The native handle of the object. | |
bool | IsDisposed [get] |
Possibility to check whether the object has already been disposed of. | |
Events | |
NativeHandleEventDelegate | ObjectDisposing |
Raised when this object is about to be disposed via the IDisposable.Dispose method. More... | |
Events inherited from INativeHandle | |
NativeHandleEventDelegate | ObjectDisposing |
Raised when this object is about to be disposed via the IDisposable.Dispose method. More... | |
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.