A multi-threaded Tcp server.
Assembly: Bespoke.Common (in Bespoke.Common.dll) Version: 220.127.116.11 (18.104.22.168)
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 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.