Daemon Parameter

The daemon parameter instructs the transport creation function about how and where to find the Rendezvous daemon and establish communication.

Each Rendezvous transport establishes a communication conduit with the Rendezvous daemon, as the following steps describe:

Procedure 

1. The daemon process opens a (TCP) client socket, and waits for a client to request a connection.

The -listen option of the Rendezvous daemon (rvd) specifies the socket where the Rendezvous daemon should listen for new client program connections.

2. The program calls the transport creation function, which contacts the daemon at the client socket specified in its daemon parameter.

The daemon parameter of the transport creation function must correspond to the -listen option of daemon process; that is, they must specify the same communication type and socket number.

If no daemon process is listening on the specified client socket, then the transport creation call automatically starts a new daemon process (which listens on the specified client socket), and then attempts to connect to it.

3. The daemon process opens a conduit for private communication with the new transport object in the program. All future communication uses that conduit.

The request socket is now free for additional requests from other client transports.