EmbeddedServer Members
The EmbeddedServer type exposes the following members.
Constructors
Name | Description | |
---|---|---|
EmbeddedServer(IEmbeddedServer, String) |
Handles initial setup.
|
|
EmbeddedServer(String) |
Handles initial setup using the built-in UDP transport.
|
Methods
Name | Description | |
---|---|---|
Accept |
Accepts the given pending connection.
|
|
ChangeTransport |
Stops the server if it's running and swaps out the transport it's using.
|
|
DisconnectClient(UInt16, EmbeddedMessage) |
Disconnects a specific client.
|
|
DisconnectClient(EmbeddedConnection, EmbeddedMessage) |
Disconnects the given client.
|
|
Reject(EmbeddedConnection, EmbeddedMessage) |
Rejects the given pending connection.
|
|
Send(EmbeddedMessage, UInt16, Boolean) |
Sends a message to a given client.
|
|
Send(EmbeddedMessage, EmbeddedConnection, Boolean) |
Sends a message to a given client.
|
|
SendToAll(EmbeddedMessage, Boolean) |
Sends a message to all connected clients.
|
|
SendToAll(EmbeddedMessage, UInt16, Boolean) |
Sends a message to all connected clients except the given one.
|
|
Start(UInt16, UInt16, Byte, Boolean) |
Starts the server.
|
|
Start(String, UInt16, UInt16, Byte, Boolean) |
Starts the server.
|
|
Stop |
Stops the server.
|
|
TryGetClient |
Retrieves the client with the given ID, if a client with that ID is currently connected.
|
|
Update |
Handles any received messages and invokes any delayed events which need to be invoked.
|
Fields
Name | Description | |
---|---|---|
HandleConnection |
An optional method which determines whether or not to accept a client's connection attempt.
|
|
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 | |
---|---|---|
BroadcastDisconnection |
Whether or not the server is currently running.
|
|
ClientCount |
The number of currently connected clients.
|
|
Clients |
An array of all the currently connected clients.
|
|
IsRunning |
Whether or not the server is currently running.
|
|
MaxClientCount |
The maximum number of concurrent connections.
|
|
Port |
The local port that the server is running on.
|
|
TimeoutTime |
Sets the default timeout time for future connections and updates the TimeoutTime of all connected clients.
|
Events
Name | Description | |
---|---|---|
ClientConnected |
Invoked when a client connects.
|
|
ClientDisconnected |
Invoked when a client disconnects.
|
|
ConnectionFailed |
Invoked when a connection fails to be fully established.
|
|
MessageReceived |
Invoked when a message is received.
|