Overview

TcpWorker class is used by TcpServer class to process each client connection.

Location

  • Reference:
    • RemObjects.InternetPack.dll  .NET, .NET Core 5.0, .NET Standard 2.0
    • RemObjects.InternetPack.fx  Island
    • libRemObjects.InternetPack.fx  Toffee
  • Namespace: RemObjects.InternetPack
  • Ancestry: Worker | TcpWorker

constructor


DataConnection  virtual    (declared in Worker)

Gets or sets the connection to the owner server listening socket.

property DataConnection: Connection read write;
Connection DataConnection { get; set; }
var DataConnection: Connection { get{} set{} }
Property DataConnection() As Connection

Done    (declared in Worker)

This event is fired after client connection being closed.

delegate EventHandler Done()
__event EventHandler: Done!
Event Done As EventHandler

DoWork  protected override

Override. Processes the client connection, catches exceptions and closes the connection after client being disconnected.


Owner  virtual

Gets the TcpServer object which is owner of this TcpWorker.

property Owner: TcpServer read;
var Owner: TcpServer { get{} }
ReadOnly Property Owner() As TcpServer

Owner  virtual    (declared in Worker)

Gets the Server object which is owner of this Worker.

property Owner: Server read write;
Server Owner { get; set; }
var Owner: Server { get{} set{} }
Property Owner() As Server

Thread  virtual    (declared in Worker)

Gets or sets the thread to execute the Work method that is provided by IWorker interface.

property Thread: Thread read write;
Thread Thread { get; set; }
var Thread: Thread { get{} set{} }
Property Thread() As Thread

Work    (declared in Worker)

DataConnection  virtual    (declared in Worker)

Gets or sets the connection to the owner server listening socket.

property DataConnection: Connection read write;
Connection DataConnection { get; set; }
var DataConnection: Connection { get{} set{} }
Property DataConnection() As Connection

Owner  virtual

Gets the TcpServer object which is owner of this TcpWorker.

property Owner: TcpServer read;
var Owner: TcpServer { get{} }
ReadOnly Property Owner() As TcpServer

Owner  virtual    (declared in Worker)

Gets the Server object which is owner of this Worker.

property Owner: Server read write;
Server Owner { get; set; }
var Owner: Server { get{} set{} }
Property Owner() As Server

Thread  virtual    (declared in Worker)

Gets or sets the thread to execute the Work method that is provided by IWorker interface.

property Thread: Thread read write;
Thread Thread { get; set; }
var Thread: Thread { get{} set{} }
Property Thread() As Thread

constructor


DoWork  protected override

Override. Processes the client connection, catches exceptions and closes the connection after client being disconnected.


Work    (declared in Worker)

Done    (declared in Worker)

This event is fired after client connection being closed.

delegate EventHandler Done()
__event EventHandler: Done!
Event Done As EventHandler