AsyncWorker

Overview

Abstract base class is used by AsyncServer class to process each asynchronous client connection.

Location


Properties


DataConnection

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

 

property DataConnection: Connection read write;

 

Connection DataConnection { get; set; }

 

Property DataConnection() As Connection

Owner

 

property Owner: Object read;

 

Object Owner { get; }

 

ReadOnly Property Owner() As Object

Instance Methods


constructor  protected

 

constructor(owner: Object)

 

AsyncWorker(Object owner)

 

Sub New(owner As Object)

Parameters:

  • owner:

Done

Closes the connection for client which is processed by this worker.

 

method Done

 

void Done()

 

Sub Done()

Setup

Disconnects an asynchronous client which is processed by this worker and tries to connect it again.

 

method Setup

 

void Setup()

 

Sub Setup()

 

  • AsyncServer Class