Click or drag to resize
Moosh.Tcp.Server 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.Net.IPEndPoint
A local endpoint to listen on.
onConnect
Type: System.Action<TcpClient>
A callback function to run on every incoming client.
See Also