TpktServerOpenAsync(Int32, NotifyDataChangedEventHandler) Method |
Open a TPKT server.
Creates a server and starts accepting connections, calling 'dataChangedHandler' with data from each connection as it arrives.
This method returns after the server has been established, leaving the accepting and servicing of connections to a background thread.
Namespace: Demo3D.Net.ProtocolsAssembly: Demo3D.IO (in Demo3D.IO.dll) Version: 19.00.00
Syntaxpublic static Task<ServerSocket> OpenAsync(
int port,
NotifyDataChangedEventHandler dataChangedHandler
)
Parameters
- port Int32
- The port to open the server on.
- dataChangedHandler NotifyDataChangedEventHandler
- Delegate for servicing new data arriving on a client connection.
Return Value
TaskServerSocketThe TPKT protocol server socket.
See Also