Click or drag to resize

wclServerDataConnection Class

The base class for server connections that require data exchange with a remote device.
Inheritance Hierarchy
SystemObject
  wclCommunicationwclCustomConnection
    wclCommunicationwclServerConnection
      wclCommunicationwclServerDataConnection

Namespace: wclCommunication
Assembly: wclCommunication (in wclCommunication.dll) Version: 8.0.6.0
Syntax
public abstract class wclServerDataConnection : wclServerConnection

The wclServerDataConnection type exposes the following members.

Constructors
 NameDescription
Public methodwclServerDataConnection Creates new client data connection.
Top
Properties
 NameDescription
Public propertyClientsCount Gets the number of connected clients.
(Inherited from wclServerConnection)
Public propertyItem Gets a connected client by its index.
(Inherited from wclServerConnection)
Public propertyMessageProcessing Gets a message processing method.
(Inherited from wclCustomConnection)
Protected propertyReceiver Gets the connection message receiver object.
(Inherited from wclCustomConnection)
Public propertyState Gets the server state.
(Inherited from wclServerConnection)
Protected propertyThreadId Gets the connection's thread ID.
(Inherited from wclCustomConnection)
Top
Methods
 NameDescription
Protected methodCheckState The method checks is the connection state and raises the wclEConnectionActive exception when the connection is active.
(Inherited from wclServerConnection)
Public methodClose The method disconnects all connected clients and closes the server.
(Inherited from wclServerConnection)
Protected methodCreateClientConnection Sends a notification to the main thread to create and init new client connection.
(Inherited from wclServerConnection)
Protected methodDoClosed Calls the OnClosed event.
(Inherited from wclServerConnection)
Protected methodDoConnect Calls the OnConnect event.
(Inherited from wclServerConnection)
Protected methodDoData Calls the OnData event.
Protected methodDoDisconnect Calls the OnDisconnect event.
(Inherited from wclServerConnection)
Protected methodDoListen Calls the OnListen event.
(Inherited from wclServerConnection)
Protected methodEnterCS Enters the connection critical section.
(Inherited from wclCustomConnection)
Public methodEqualsDetermines whether the specified Object is equal to the current Object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as a hash function for a particular type.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodHalClose Provides a hardware-dependent implementation for incoming client connections listening.
(Inherited from wclServerConnection)
Protected methodHalCreateClient The method crteates a hardware and transport-dependent client connection.
(Inherited from wclServerConnection)
Protected methodHalListen Provides a hardware-dependent implementation for incoming client connections listening.
(Inherited from wclServerConnection)
Protected methodHalPrepare Implements a hardware-dependent code that prepares for incoming connections listening.
(Inherited from wclServerConnection)
Protected methodInternalClose Closes the server.
(Inherited from wclServerConnection)
Protected methodLeaveCS Leaves the connection critical section.
(Inherited from wclCustomConnection)
Protected methodListen The method starts listening for client connections.
(Inherited from wclServerConnection)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Protected methodMessageReceived The message receiver calls this method when a new notification message is received.
(Inherited from wclServerConnection)
Protected methodPostMessage Places a message to the connection's message receiver queue.
(Inherited from wclCustomConnection)
Protected methodSetClientEventHandler The method sets the client's event handlers.
(Overrides wclServerConnectionSetClientEventHandler(wclServerClientConnection))
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Events
 NameDescription
Public eventOnClosed The event is called when the server is closed.
(Inherited from wclServerConnection)
Public eventOnConnect The event is called when a remote client is connected to the server.
(Inherited from wclServerConnection)
Public eventOnData The event is called when new data is received from a connected remote device.
Public eventOnDisconnect The event is called when a remote client has disconnected from the server.
(Inherited from wclServerConnection)
Public eventOnListen The event is called when the serve ris ready to accept incomming connections (is in listening state).
(Inherited from wclServerConnection)
Top
See Also