com.onlineobject.objectnet Namespace

EmbeddedServer Members

The EmbeddedServer type exposes the following members.

Constructors


  Name Description
Public method EmbeddedServer(IEmbeddedServer, String)
Handles initial setup.
Public method EmbeddedServer(String)
Handles initial setup using the built-in UDP transport.

Methods


  Name Description
Public method Accept
Accepts the given pending connection.
Public method ChangeTransport
Stops the server if it's running and swaps out the transport it's using.
Public method DisconnectClient(UInt16, EmbeddedMessage)
Disconnects a specific client.
Public method DisconnectClient(EmbeddedConnection, EmbeddedMessage)
Disconnects the given client.
Public method Reject(EmbeddedConnection, EmbeddedMessage)
Rejects the given pending connection.
Public method Send(EmbeddedMessage, UInt16, Boolean)
Sends a message to a given client.
Public method Send(EmbeddedMessage, EmbeddedConnection, Boolean)
Sends a message to a given client.
Public method SendToAll(EmbeddedMessage, Boolean)
Sends a message to all connected clients.
Public method SendToAll(EmbeddedMessage, UInt16, Boolean)
Sends a message to all connected clients except the given one.
Public method Start(UInt16, UInt16, Byte, Boolean)
Starts the server.
Public method Start(String, UInt16, UInt16, Byte, Boolean)
Starts the server.
Public method Stop
Stops the server.
Public method TryGetClient
Retrieves the client with the given ID, if a client with that ID is currently connected.
Public method Update
Handles any received messages and invokes any delayed events which need to be invoked.

Fields


  Name Description
Public field HandleConnection
An optional method which determines whether or not to accept a client's connection attempt.
Public field RelayFilter
Stores which message IDs have auto relaying enabled. Relaying is disabled entirely when this is nullNothingnullptra null reference (Nothing in Visual Basic).

Properties


  Name Description
Public property BroadcastDisconnection
Whether or not the server is currently running.
Public property ClientCount
The number of currently connected clients.
Public property Clients
An array of all the currently connected clients.
Public property IsRunning
Whether or not the server is currently running.
Public property MaxClientCount
The maximum number of concurrent connections.
Public property Port
The local port that the server is running on.
Public property TimeoutTime
Sets the default timeout time for future connections and updates the TimeoutTime of all connected clients.

Events


  Name Description
Public event ClientConnected
Invoked when a client connects.
Public event ClientDisconnected
Invoked when a client disconnects.
Public event ConnectionFailed
Invoked when a connection fails to be fully established.
Public event MessageReceived
Invoked when a message is received.