Worker

Overview

Abstract base class for all synchronous workers which are used internally by the Server components to handle the individual connections. They are created by the Listener whenever a new connection comes in.

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


 

constructor  protected

 

constructor

 

Worker()

 

init()

 

Sub New()

DataConnection  virtual

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

This event is fired after client connection being closed.

 

event Done: EventHandler

 

delegate EventHandler Done()

 

__event EventHandler: Done!

 

Event Done As EventHandler

DoWork  protected virtual abstract

When overridden in a derived class, processes the client connection, catches exceptions and closes the connection after client disconnecting.

 

method DoWork

 

void DoWork()

 

func DoWork()

 

Sub DoWork()

Owner  virtual

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

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

 

method Work

 

void Work()

 

func Work()

 

Sub Work()

 

DataConnection  virtual

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 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

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  protected

 

constructor

 

Worker()

 

init()

 

Sub New()

DoWork  protected virtual abstract

When overridden in a derived class, processes the client connection, catches exceptions and closes the connection after client disconnecting.

 

method DoWork

 

void DoWork()

 

func DoWork()

 

Sub DoWork()

Work

 

method Work

 

void Work()

 

func Work()

 

Sub Work()

 

Done

This event is fired after client connection being closed.

 

event Done: EventHandler

 

delegate EventHandler Done()

 

__event EventHandler: Done!

 

Event Done As EventHandler