Table of Contents

OIL2 Class Standard.ConnectToPeer


class Standard . ConnectToPeer {
        oid     connObj;
        int32   interval;
        string  myDomain;
        string  secret;
} inherits from Object;

DESCRIPTION

The ConnectToPeer class implements a service that attempts to establish and maintain an inter-daemon communication link to another FARGOS/VISTA-based component.

METHODS


Standard.ConnectToPeer:create

ConnectToPeer:create(string peerName, optional int32 retryInterval, optional string domainName, optional string localSecret)

Method Description

The peerName argument specifies the address of the remote peer. It is provided to an EstablishConnection object, which in turn performs the actual connection attempts. The second argument, retryInterval is optional and specifies the interval in seconds between connection establishment attempts. If it is specified as 0, only a single attempt is made.


Standard.ConnectToPeer:connectionEstablished

ConnectToPeer:connectionEstablished(oid obj)

Method Description

When a new connection is successfully established by the associated EstablishConnection object, it sends a connectionEstablished message and provides the object Id of the IOobject that represents the new connection. The ConnectToPeer object will create a NegotiatePeerConnection object and pass the object Id of the IOobject.


Generated: Wed, 14 Mar 2012 02:52:22 EDT
Support Information