AsyncHttpServerWorker

Overview

The AsyncHttpServerWorker class is used internally by the AsyncHttpServer class to process asynchronous client connections.

For internal use only.

Location

 

constructor

Creates a new instance of the AsyncHttpServerWorker class.

 

constructor(owner: Object)

 

AsyncHttpServerWorker(Object owner)

 

Sub New(owner As Object)

Parameters:

  • owner:

DataConnection    (declared in AsyncWorker)

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

 

property DataConnection: Connection read write;

 

Connection DataConnection { get; set; }

 

Property DataConnection() As Connection

Done

 

method Done

 

void Done()

 

Sub Done()

Owner    (declared in AsyncWorker)

 

property Owner: Object read;

 

Object Owner { get; }

 

ReadOnly Property Owner() As Object

SendResponse

Sends data to the client.

 

method SendResponse

 

void SendResponse()

 

Sub SendResponse()

Setup

Performs initialization of the worker and sets its internal variables to their default values. Also opens asynchronous read connection to the client.

 

method Setup

 

void Setup()

 

Sub Setup()

 

DataConnection    (declared in AsyncWorker)

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    (declared in AsyncWorker)

 

property Owner: Object read;

 

Object Owner { get; }

 

ReadOnly Property Owner() As Object

 

constructor

Creates a new instance of the AsyncHttpServerWorker class.

 

constructor(owner: Object)

 

AsyncHttpServerWorker(Object owner)

 

Sub New(owner As Object)

Parameters:

  • owner:

Done

 

method Done

 

void Done()

 

Sub Done()

SendResponse

Sends data to the client.

 

method SendResponse

 

void SendResponse()

 

Sub SendResponse()

Setup

Performs initialization of the worker and sets its internal variables to their default values. Also opens asynchronous read connection to the client.

 

method Setup

 

void Setup()

 

Sub Setup()