Click or drag to resize
MooshTcpServerSync Method
Synchronously 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 ServerSync(
	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