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


 

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  protected

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(aEventRepository: TObject; aClient: TGUID)

Parameters:

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

GetGuid  protected

Returns the GUID of the connection.

function GetGuid: TGUID

GetSelf  protected

Returns self.

function GetSelf: TROSuperHTTPServerConnection

GuidMatches  protected

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

Server

References to the parent TROBaseSuperHTTPServer.

property Server: TROBaseSuperHTTPServer read

SessionId

SessionID

property SessionId: TGUID read write

WaitingConnections

List that stores the TROSuperHTTPWaitingConnection.

property WaitingConnections: TROSuperHTTPWaitingConnection read

 

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

Server

References to the parent TROBaseSuperHTTPServer.

property Server: TROBaseSuperHTTPServer read

SessionId

SessionID

property SessionId: TGUID read write

WaitingConnections

List that stores the TROSuperHTTPWaitingConnection.

property WaitingConnections: TROSuperHTTPWaitingConnection read

 

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  protected

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(aEventRepository: TObject; aClient: TGUID)

Parameters:

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

GetGuid  protected

Returns the GUID of the connection.

function GetGuid: TGUID

GetSelf  protected

Returns self.

function GetSelf: TROSuperHTTPServerConnection

GuidMatches  protected

Compares the ConnectionID with the passed aGuid

function GuidMatches(const aGuid: TGUID): Boolean

Parameters:

  • aGuid: Guid