A multi-threaded Tcp server.
System Object Bespoke.Common.Net IPServer Bespoke.Common.Net TcpServerNamespace: Bespoke.Common.NetAssembly: Bespoke.Common (in Bespoke.Common.dll) Version: 5.0.0.0 (5.0.0.0)
Public Class TcpServer _
Inherits IPServer _
Implements IDisposable
public class TcpServer : IPServer, IDisposable
public ref class TcpServer : public IPServer,
IDisposable
Data can be received automatically, by the connections established by the
TcpServer
by setting
ReceiveDataInline to true during instantiation (the default behavior). This establishes
asynchronous reception of Tcp messages framed using a 4-byte integer containing the length of the message. The
DataReceived event is raised as complete messages are received. Users can perform their own
message handling by setting
ReceiveDataInline to false and listening for
Connected events.