Click or drag to resize
MooshTcpServer Method
Asynchronously listens for, and handles, incoming TCP connections.

Namespace: Moosh
Assembly: Moosh (in Moosh.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static void Server(
	IPEndPoint endPoint,
	Action<TcpClient> onConnect
)

Parameters

endPoint
Type: System.NetIPEndPoint
A local endpoint to listen on.
onConnect
Type: SystemActionTcpClient
A callback function to run on every incoming client.
See Also