com.onlineobject.objectnet Namespace

Channel Methods

The Channel type exposes the following members.

Methods


  Name Description
Public method ConfigureEncryption
Configure how encryption wil works Note: This methods allow to define any encryption alghorith
Public method Connect()()()()
Initiates a connection to the network server.
Public method Connect(String, UInt16, UInt16, UInt16)
Attempts to establish a connection using the provided IP address and ports.
Public method Disconnect
Disconnects the network server.
Public method GetConnectedClient
Gets the connected client with the specified connection ID.
Public method GetConnectedClients
Gets an array of connected clients.
Public method GetConnectionID
Retrieves the connection ID of the channel.
Public method GetTransport
Retrieves the current transport layer object.
Public method IsConnected
Checks if the network server is connected.
Public method IsConnectionLost
Checks if the network server has lost connection.
Public method IsEncryptionEnabled
Return if encryption is enabled
Public method IsStarted
Checks if the channel has been started.
Public method IsTerminated
Checks if the channel has been terminated.
Public method OnClientConnected
Registers a callback to be invoked when a client connects.
Public method OnClientDisconnected
Registers a callback to be invoked when a client disconnects.
Public method OnConnected
Registers a callback to be invoked when the connection is successfully established.
Public method OnConnectionFailed
Registers a callback to be invoked when the connection attempt fails.
Public method OnDisconnected
Registers a callback to be invoked when the connection is lost.
Public method OnException
Registers a callback to be invoked when an exception occurs.
Public method OnMessageReceived
Registers a callback to be invoked when a message is received.
Public method Process
Processes the network server by calling the Process method of the transport layer if it is not null.
Public method RegisterClient
Registers a client with the network server.
Public method Send
Sends data to the connected client or server.
Public method SetConnectionID
Sets the connection ID for the channel.
Public method SetEncryptionEnabled
Determine if encryption is enabled or not
Public method SetIdleTimeout
Sets the idle timeout for the network server.
Public method SetIp
Sets the IP address for the network server.
Public method SetTcpPort
Sets the TCP port for the network server.
Public method SetTransport(String)
Sets the transport layer by specifying the class name as a string.
Public method SetTransport(ITransport)
Sets the transport layer by providing an instance of an object that implements ITransport.
Public method SetUdpPort
Sets the UDP port for the network server.
Public method Start
Starts the channel and initializes the transport layer.
Public method Stop
Stops the network server, terminates the server and disconnects all clients.
Public method Transmit
Transmits data using the specified transport layer or the default one if none is specified.
Public method UnregisterClient
Unregisters a client from the network server.