Table of Contents

OIL2 Class Local.ConnectAndForward


class Local . ConnectAndForward {
        int32   attemptCount;
        oid     connObj;
        string  destinationAddr;
        oid     forwardController;
        int32   sidesOpen;
        oid     sinkObj;
        oid     srcObj;
inherits from Standard.Object;

DESCRIPTION

This is an auxiliary class used by class ForwardConnection. Connections are attempted using EstablishConnection objects.

METHODS


Local.ConnectAndForward:create

ConnectAndForward:create(oid fwdCntrl, oid source, string destAddr, int32 tries)

Method Description

See initialize.


Local.ConnectAndForward:initialize

ConnectAndForward:initialize(oid fwdCntrl, oid source, string destAddr, int32 tries)

Method Description

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.


Local.ConnectAndForward:connectionAttemptFailed

ConnectAndForward:connectionAttemptFailed(int32 rc)

Method Description

Handles notifications of failed connection attempts that are sent by the EstablishConnection object.


Local.ConnectAndForward:connectionEstablished

ConnectAndForward:connectionEstablished(oid ioObj)

Method Description

Handles notifications of successful connection attempts that are sent by the EstablishConnection object.


Local.ConnectAndForward:canRead

ConnectAndForward:canRead(oid obj)

Method Description

Forwards data that is available on either side of a connection.