Establishing a server connection

The application calls the following routines to set up and open a connection to a remote server: