Declaration
TnxBaseTransport = class(TnxStateComponent)
Description
The base class for all transports.
Events
OnAddSession is called every time a session connects to the transport if it is in listening mode.
OnChooseServer is called in sending mode, if more than one server was found for broadcast
OnConnectionLost is called if the transport detects a drop of a connection.
OnFindServers is called before and after broadcasting for servers.
OnAddSession is called every time a session disconnects from a transport if it is in listening mode.
Methods
This function initiates a broadcast for servers.
This function executes a callback function with the given parameters.
This function resets all statistics for the transport.
This function returns the number of physical connections.
constructor.
This function returns the currently active transport.
destructor.
This function establishes a connection and returns the session id. This function sends a request to the server and then waits for the reply.
This function returns a list of addresses for the transport.
This function returns the name of the transport.
This function returns the addresses of all servers found for the current transport by using broadcast. aTimeOut specifies the timeout in msec for the broadcast.
This function returns the captions for the statistics items.
This function returns the values for the statistics items.
IsConnected returns true if the current transport has an open connection.
This function loads the Transport settings from a stream using aReader.
This functions posts a request and does NOT wait for the answer.
This function returns the name of the transport.
This function is called to reply to a request
This functions sends a request and waits for the answer.
This function sets the MsgCount stats to 0.
This function saves the Transport settings to a stream using aWriter.
This function forces the transport to sleep for aTimeOut msec.
This function returns true if the transport is supported in the current environment (e.g. windows version)
This function closes a connection.
This functions transfers the given information to the other connection point by wrapping it into a TnxDataMessage and sending it over an open connection.
Properties
The number of bytes received since the last clearing.
The number of bytes sent since the last clearing.
This property points to the connected Command Handler.
The total time used for compressing data.
The log options for the event.
This is a maximum bytes per second setting for the transport. It is experimental and helps to test the transport for slow connections.
The number of Messages received since the last clearing.
The number of Messages sent since the last clearing.
The mode of the transport.
The total number of messages transferred.
This is a minimum turnaround time setting in msec for the transport. It is experimental and helps to test the transport for slow connections.
If the server is in listening it responds to broadcast requests if this property is set to true.
The Server Name. If in listening mode it's the name of the clients have to connect to. In sending mode it's the name the transport gets connected to.
This is the Server Name property at design time.
This is the Server Name property at runtime.
The timeout of the transport in msec.
The number of bytes received after uncompression since the last clearing.
The number of bytes sent after uncompression since the last clearing.
The total time used for uncompressing data.
File