TpktServerOpen Method (Int32, ServiceClientAsyncIPacketIOService) |
Open a TPKT server.
Creates a server and starts accepting connections, calling 'serviceConnection' with each connection established.
This method returns after the server has been established, leaving the accepting and servicing of connections to a background thread.
Namespace:
Demo3D.Net.Protocols
Assembly:
Demo3D.IO (in Demo3D.IO.dll) Version: 18.04.00
Syntaxpublic static ServerSocket Open(
int port,
ServiceClientAsync<IPacketIOService> serviceConnection
)
Parameters
- port
- Type: SystemInt32
The port to open the server on. - serviceConnection
- Type: Demo3D.NetServiceClientAsyncIPacketIOService
Delegate for servicing a new connection.
Return Value
Type:
ServerSocketThe TPKT protocol server socket.
See Also