Click or drag to resize

TcpServer Methods

The TcpServer type exposes the following members.

Methods
  Name Description
Public method BeginInit Performs necessary operations before the server properties are initialized.
(Inherited from ServerBase)
Public method CreateObjRef Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject)
Public method DisconnectAll Disconnects all of the connected clients.
(Inherited from ServerBase)
Public method DisconnectOne Disconnects the specified connected client.
(Overrides ServerBaseDisconnectOne(Guid))
Public method Dispose Releases all resources used by the Component.
(Inherited from Component)
Protected method Dispose(Boolean) Releases the unmanaged resources used by the server and optionally releases the managed resources.
(Inherited from ServerBase)
Public method EndInit Performs necessary operations after the server properties are initialized.
(Inherited from ServerBase)
Public method Equals Determines whether the specified object is equal to the current object.
(Inherited from Object)
Protected method Finalize Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection.
(Inherited from Component)
Public method GetHashCode Serves as the default hash function.
(Inherited from Object)
Public method GetLifetimeService Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject)
Protected method GetService Returns an object that represents a service provided by the Component or by its Container.
(Inherited from Component)
Public method GetType Gets the Type of the current instance.
(Inherited from Object)
Public method Initialize Initializes the server.
(Inherited from ServerBase)
Public method InitializeLifetimeService Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject)
Public method IsClientConnected Determines whether the given client is currently connected to the server.
(Inherited from ServerBase)
Public method LoadSettings Loads saved TcpServer settings from the config file if the PersistSettings property is set to true.
(Overrides ServerBaseLoadSettings)
Protected method MemberwiseClone Creates a shallow copy of the current Object.
(Inherited from Object)
Protected method MemberwiseClone(Boolean) Creates a shallow copy of the current MarshalByRefObject object.
(Inherited from MarshalByRefObject)
Public method Multicast(Byte) Sends data to all of the connected clients synchronously.
(Inherited from ServerBase)
Public method Multicast(Object) Sends data to all of the connected clients synchronously.
(Inherited from ServerBase)
Public method Multicast(String) Sends data to all of the connected clients synchronously.
(Inherited from ServerBase)
Public method Multicast(Byte, Int32, Int32) Sends data to all of the connected clients synchronously.
(Inherited from ServerBase)
Public method MulticastAsync(Byte) Sends data to all of the connected clients asynchronously.
(Inherited from ServerBase)
Public method MulticastAsync(Object) Sends data to all of the connected clients asynchronously.
(Inherited from ServerBase)
Public method MulticastAsync(String) Sends data to all of the connected clients asynchronously.
(Inherited from ServerBase)
Public method MulticastAsync(Byte, Int32, Int32) Sends data to all of the connected clients asynchronously.
(Inherited from ServerBase)
Protected method OnClientConnected Raises the ClientConnected event.
(Inherited from ServerBase)
Protected method OnClientConnectingException Raises the ClientConnectingException event.
(Inherited from ServerBase)
Protected method OnClientDisconnected Raises the ClientDisconnected event.
(Inherited from ServerBase)
Protected method OnReceiveClientData Raises the ReceiveClientData event.
(Inherited from ServerBase)
Protected method OnReceiveClientDataComplete Raises the ReceiveClientDataComplete event.
(Inherited from ServerBase)
Protected method OnReceiveClientDataException(Guid, Exception) Raises the ReceiveClientDataException event.
(Overrides ServerBaseOnReceiveClientDataException(Guid, Exception))
Protected method OnReceiveClientDataException(Guid, SocketException) Raises the ReceiveClientDataException event.
Protected method OnSendClientDataComplete Raises the SendClientDataComplete event.
(Inherited from ServerBase)
Protected method OnSendClientDataException Raises the SendClientDataException event.
(Overrides ServerBaseOnSendClientDataException(Guid, Exception))
Protected method OnSendClientDataStart Raises the SendClientDataStart event.
(Inherited from ServerBase)
Protected method OnServerStarted Raises the ServerStarted event.
(Inherited from ServerBase)
Protected method OnServerStopped Raises the ServerStopped event.
(Inherited from ServerBase)
Protected method OnUnhandledUserException Raises the UnhandledUserException event.
(Inherited from ServerBase)
Public method Read Reads a number of bytes from the current received data buffer and writes those bytes into a byte array at the specified offset.
(Overrides ServerBaseRead(Guid, Byte, Int32, Int32))
Protected method ReStart Re-starts the server if currently running.
(Inherited from ServerBase)
Public method SaveSettings Saves TcpServer settings to the config file if the PersistSettings property is set to true.
(Overrides ServerBaseSaveSettings)
Protected method SendDataToAsync Sends data to the specified client asynchronously.
(Overrides ServerBaseSendDataToAsync(Guid, Byte, Int32, Int32))
Public method SendTo(Guid, Byte) Sends data to the specified client synchronously.
(Inherited from ServerBase)
Public method SendTo(Guid, Object) Sends data to the specified client synchronously.
(Inherited from ServerBase)
Public method SendTo(Guid, String) Sends data to the specified client synchronously.
(Inherited from ServerBase)
Public method SendTo(Guid, Byte, Int32, Int32) Sends data to the specified client synchronously.
(Inherited from ServerBase)
Public method SendToAsync(Guid, Byte) Sends data to the specified client asynchronously.
(Inherited from ServerBase)
Public method SendToAsync(Guid, Object) Sends data to the specified client asynchronously.
(Inherited from ServerBase)
Public method SendToAsync(Guid, String) Sends data to the specified client asynchronously.
(Inherited from ServerBase)
Public method SendToAsync(Guid, Byte, Int32, Int32) Sends data to the specified client asynchronously.
(Inherited from ServerBase)
Public method Start Starts the TcpServer synchronously and begins accepting client connections asynchronously.
(Overrides ServerBaseStart)
Public method Stop Stops the TcpServer synchronously and disconnects all connected clients.
(Overrides ServerBaseStop)
Public method ToString Returns a String containing the name of the Component, if any. This method should not be overridden.
(Inherited from Component)
Public method TryGetClient Gets the TransportProviderT object associated with the specified client ID.
Public method TryGetClientPrincipal Gets the WindowsPrincipal object associated with the specified client ID.
Protected method ValidateConfigurationString Validates the specified configurationString.
(Overrides ServerBaseValidateConfigurationString(String))
Top
Extension Methods
  Name Description
Public Extension Method GetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension Method GetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
See Also