Click or drag to resize

TpktServer Class

A TPKT server.
Inheritance Hierarchy
SystemObject
  Demo3D.Net.ProtocolsTpktServer

Namespace:  Demo3D.Net.Protocols
Assembly:  Demo3D.IO (in Demo3D.IO.dll) Version: 15.0.2.11458
Syntax
C#
public static class TpktServer
Methods
  NameDescription
Public methodStatic memberOpen(Int32, NotifyDataChangedEventHandler)
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.
Public methodStatic memberOpen(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.
Public methodStatic memberOpenAsync(Int32, NotifyDataChangedEventHandler)
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.
Public methodStatic memberOpenAsync(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.
Public methodStatic memberOpenAsync(Boolean, Int32, NotifyDataChangedEventHandler)
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.
Public methodStatic memberOpenAsync(Boolean, 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.
Top
Remarks
This class is a wrapper around ProtocolServer.Open{IPacketIOService} and ProtocolAddressBuilder. See ProtocolServer and ProtocolAddressBuilder for more advanced usage.
See Also