Rendezvous daemon (rvd) processes communicate using UDP services. The
service parameter instructs the Rendezvous daemon to use this service whenever it conveys messages on this transport.
A service group is a group of Rendezvous transport objects that communicate using the same UDP service. Rendezvous daemon processes connect transports within a service group on the same network, so they can share messages with one another.
Within each rvd process, all the transports that specify a given service must specify the same network parameter. That is, if the
service parameters resolve to the same UDP port, then the
network parameters must also be identical. (This restriction extends also to routing daemons.)
For example, suppose that the program foo, on the computer named
orange, has a transport that communicates on the service
svc1 over the network
lan1. It is illegal for
any program to subsequently create a transport (connecting to the same daemon process on
orange) to communicate on
svc1 over any other network—such as
lan2. Once
rvd binds
svc1 to
lan1, that service cannot send outbound broadcast messages to any other network. Attempting to illegally rebind a service to a new network fails; transport creation calls produce an error status (
TIBRV_INIT_FAILURE).
When you specify a service name, the transport creation function calls getservbyname(), which searches a network database (such as NIS) or a flat file (such as
services in the system directory).
If getservbyname() does not find
rendezvous, the Rendezvous daemon instructs the transport creation function to use default service
7500.
It is good practice for administrators to define rendezvous as a service, especially if port
7500 is already in use.
Once this entry is in the network database, programmers can conveniently specify NULL or the empty string as the
service argument to create a transport that uses the default Rendezvous service.
The rvd daemon interprets this service as a UDP service.
To enable direct communication, specify a two-part service parameter, separating the parts with a colon. You may specify either part by service name, by port number, or by default. For example:
To use the rendezvous service for regular communication (or if
rendezvous is not defined, the default regular service, 7500), omit the first part of the parameter.
On each host computer, programs can bind a UDP service only once. Consider these consequences: