MooshTcpServerSync Method |
Synchronously 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 ServerSync(
IPEndPoint endPoint,
Action<TcpClient> onConnect
)
Public Shared Sub ServerSync (
endPoint As IPEndPoint,
onConnect As Action(Of TcpClient)
)
public:
static void ServerSync(
IPEndPoint^ endPoint,
Action<TcpClient^>^ onConnect
)
static member ServerSync :
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