Asynchronously listens for, and handles, incoming TCP connections.
Namespace: MooshAssembly: Moosh (in Moosh.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public static void Server(
IPEndPoint endPoint,
Action<TcpClient> onConnect
)
Public Shared Sub Server (
endPoint As IPEndPoint,
onConnect As Action(Of TcpClient)
)
public:
static void Server(
IPEndPoint^ endPoint,
Action<TcpClient^>^ onConnect
)
static member Server :
endPoint : IPEndPoint *
onConnect : Action<TcpClient> -> unit
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