Click or drag to resize

TcpServer(IPAddress, Int32, Int32) Constructor

Initializes a new instance of the TcpServer class with the specified local address, port, and maximum number of connections.

Namespace: Ookii.Jumbo
Assembly: Ookii.Jumbo (in Ookii.Jumbo.dll) Version: 0.3.0+dc1307f20e065bb638e0b73a34cd216f57e486f1
Syntax
protected TcpServer(
	IPAddress[] localAddresses,
	int port,
	int maxConnections
)

Parameters

localAddresses  IPAddress
The local IP address that the server should bind to.
port  Int32
The port to listen on.
maxConnections  Int32
The maximum number of simultaneous connections that the server will allow, or zero to have no maximum.
Remarks

If maxConnections is larger than zero, the TcpServer class will maintain a count of connected clients on all specified end points. If a client tries to connect when the count is equal to maxConnections, the connection will be refused.

If maxConnections is larger than zero, the TcpServer will send a 4-byte value (to keep the remaining data word-aligned) that is zero to indicate the connection was rejected, or non-zero to indicate it was accepted. When maxConnections is zero, this value is not sent.

See Also