ServerBase Methods

Methods

Create Create a communications server
DisconnectAll Disconnects all of the connected clients.
DisconnectOne When overridden in a derived class, disconnects a connected client.
Dispose Releases all the resources used by the ServerBase object.
Dispose(Boolean) Releases the unmanaged resources used by the ServerBase object and optionally releases the managed resources.
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
Initialize Initializes the server.
IsClientConnected Determines whether the given client is currently connected to the server.
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Multicast(Byte) Sends data to all of the connected clients synchronously.
Multicast(String) Sends data to all of the connected clients synchronously.
Multicast(Byte, Int32, Int32) Sends data to all of the connected clients synchronously.
MulticastAsync(Byte) Sends data to all of the connected clients asynchronously.
MulticastAsync(String) Sends data to all of the connected clients asynchronously.
MulticastAsync(Byte, Int32, Int32) Sends data to all of the connected clients asynchronously.
OnClientConnected Raises the ClientConnected event.
OnClientConnectingException Raises the ClientConnectingException event.
OnClientDisconnected Raises the ClientDisconnected event.
OnReceiveClientData Raises the ReceiveClientData event.
OnReceiveClientDataComplete Raises the ReceiveClientDataComplete event.
OnReceiveClientDataException Raises the ReceiveClientDataException event.
OnSendClientDataComplete Raises the SendClientDataComplete event.
OnSendClientDataException Raises the SendClientDataException event.
OnSendClientDataStart Raises the SendClientDataStart event.
OnServerStarted Raises the ServerStarted event.
OnServerStopped Raises the ServerStopped event.
Read When overridden in a derived class, reads a number of bytes from the current received data buffer and writes those bytes into a byte array at the specified offset.
ReStart Re-starts the server if currently running.
SendDataToAsync When overridden in a derived class, sends data to the specified client asynchronously.
SendTo(Guid, Byte) Sends data to the specified client synchronously.
SendTo(Guid, String) Sends data to the specified client synchronously.
SendTo(Guid, Byte, Int32, Int32) Sends data to the specified client synchronously.
SendToAsync(Guid, Byte) Sends data to the specified client asynchronously.
SendToAsync(Guid, String) Sends data to the specified client asynchronously.
SendToAsync(Guid, Byte, Int32, Int32) Sends data to the specified client asynchronously.
Start When overridden in a derived class, starts the server.
Stop When overridden in a derived class, stops the server.
ToStringReturns a string that represents the current object.
(Inherited from Object)
ValidateConfigurationString When overridden in a derived class, validates the specified configurationString.

See Also