Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved


Chapter 10 Guidelines for Programming : Understand Sockets

Understand Sockets
Transport creation calls accept two parameters that direct the transport to open two different kinds of sockets:
The service parameter specifies a UDP service (also commonly called a UDP port); the transport opens a UDP socket to that network service.
Rendezvous daemon processes uses the UDP service for communication with other Rendezvous daemon processes across the network.
The daemon parameter specifies a TCP port number; the transport opens a TCP socket to that port.
Transport objects use the TCP port for communication between a client program and its Rendezvous daemon (usually on the same host computer).
This parameter corresponds to the -listen parameter of rvd.
 
These two types of socket are not interchangeable; confusing the two leads to programming errors that are difficult to diagnose and repair.
One source of this confusion is that the default rendezvous service (for TRDP daemons) is UDP service 7500, and the default daemon parameter is TCP socket 7500. Although these two numbers are the same, they specify different items.
  

Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved