TROSuperHTTPServerConnection

Overview

The TROSuperHTTPServerConnection class is part of the SuperHTTP server channel architecture.

This class implements the IROSuperHTTPServerConnection and the IROActiveEventServer interface.

The TROSuperHTTPServerConnection class is not designed to be used outside the Remoting SDK.

Location

Implements

 

constructor Create

Creates a new instance.

constructor Create(aServer: TROBaseSuperHTTPServer)

Parameters:

  • aServer: Super HTTP server

ConnectionId

ConnectionID

property ConnectionId: TGuid read write

DispatchEvent

This method is called by the event manager to notify the server about a new event.

procedure DispatchEvent(anEventDataItem: TROEventData; aSessionReference: TGUID; aSender: TObject)

Parameters:

  • anEventDataItem: Represents an event that fires
  • aSessionReference: Unique identifier that represents the session
  • aSender: Indicates the object that receives the event

DisposeData

Frees all previously allocated resources and closes all opened connections.

procedure DisposeData

EventsRegistered

This method is called whenever the event manager registers for the specified client.

procedure EventsRegistered(aSender: TObject; aClient: TGUID)

Parameters:

  • aSender: Object that will receive the event.
  • aClient: GUID that specifies the client.

GetGuid

Returns the GUID of the connection.

function GetGuid: TGuid

GetSelf  protected

Returns self.

function GetSelf: TROSuperHTTPServerConnection

GuidMatches

Compares the ConnectionID with the passed aGuid

function GuidMatches(const aGuid: TGuid): Boolean

Parameters:

  • aGuid: Guid

LastTalk

Specifies the datetime when the server talked with the client.

property LastTalk: TDateTime read write

RemoteMaxPackageLength

Maximum package size that can be accepted on the client-side.

property RemoteMaxPackageLength: Integer read write

ResponseQueue

List that stores the IROSuperHTTPServerResponse interface which should be send to the clients.

property ResponseQueue: TInterfaceList read write

Server

References to the parent TROBaseSuperHTTPServer.

property Server: TROBaseSuperHTTPServer read write

SessionId

SessionID

property SessionId: TGUID read write

WaitingConnections

List that stores the TROSuperHTTPWaitingConnection.

property WaitingConnections: TThreadList<TROSuperHTTPWaitingConnection> read write

 

ConnectionId

ConnectionID

property ConnectionId: TGuid read write

LastTalk

Specifies the datetime when the server talked with the client.

property LastTalk: TDateTime read write

RemoteMaxPackageLength

Maximum package size that can be accepted on the client-side.

property RemoteMaxPackageLength: Integer read write

ResponseQueue

List that stores the IROSuperHTTPServerResponse interface which should be send to the clients.

property ResponseQueue: TInterfaceList read write

Server

References to the parent TROBaseSuperHTTPServer.

property Server: TROBaseSuperHTTPServer read write

SessionId

SessionID

property SessionId: TGUID read write

WaitingConnections

List that stores the TROSuperHTTPWaitingConnection.

property WaitingConnections: TThreadList<TROSuperHTTPWaitingConnection> read write

 

constructor Create

Creates a new instance.

constructor Create(aServer: TROBaseSuperHTTPServer)

Parameters:

  • aServer: Super HTTP server

DispatchEvent

This method is called by the event manager to notify the server about a new event.

procedure DispatchEvent(anEventDataItem: TROEventData; aSessionReference: TGUID; aSender: TObject)

Parameters:

  • anEventDataItem: Represents an event that fires
  • aSessionReference: Unique identifier that represents the session
  • aSender: Indicates the object that receives the event

DisposeData

Frees all previously allocated resources and closes all opened connections.

procedure DisposeData

EventsRegistered

This method is called whenever the event manager registers for the specified client.

procedure EventsRegistered(aSender: TObject; aClient: TGUID)

Parameters:

  • aSender: Object that will receive the event.
  • aClient: GUID that specifies the client.

GetGuid

Returns the GUID of the connection.

function GetGuid: TGuid

GetSelf  protected

Returns self.

function GetSelf: TROSuperHTTPServerConnection

GuidMatches

Compares the ConnectionID with the passed aGuid

function GuidMatches(const aGuid: TGuid): Boolean

Parameters:

  • aGuid: Guid

See Also