class Local . ConnectAndForward {
int32 attemptCount;
oid connObj;
string destinationAddr;
oid forwardController;
int32 sidesOpen;
oid sinkObj;
oid srcObj;
} inherits from Standard.Object;
This is an auxiliary class used by class ForwardConnection. Connections are attempted using EstablishConnection objects.
ConnectAndForward:create(oid fwdCntrl, oid source, string destAddr, int32 tries)
See initialize.
ConnectAndForward:initialize(oid fwdCntrl, oid source, string destAddr, int32 tries)
The fmdCntrl is the object Id of the ForwardConnection object. The incoming IOobject object is provided in source. The transport address of the server is specified in destAddr, which is provided to the EstablishConnection object that will be created. The tries argument provides an on-going count of the number of connection atttempts that have been made; this is incremented and provided in a failedConnection if the connection attempt fails.
ConnectAndForward:connectionAttemptFailed(int32 rc)
Handles notifications of failed connection attempts that are sent by the EstablishConnection object.
ConnectAndForward:connectionEstablished(oid ioObj)
Handles notifications of successful connection attempts that are sent by the EstablishConnection object.
ConnectAndForward:canRead(oid obj)
Forwards data that is available on either side of a connection.