SYNOPSIS
int MGOconnect (void)
DESCRIPTION
The MGOconnect() function connects the application to the Mango server.
Once the connection has been established, the following global variables are
set:
- extern char MGOserver[];
- extern int MGOfd;
- extern int MGOoptions;
MGOserver is the address of the server connected to.
MGOfd is the file descriptor of the opened tcp socket.
MGOoptions is set to the resultant options naggled with the server.
RETURN VALUE
Returns 1 upon success or -1 if an error occurred (in which case
MGOerrno and MGOerrmsg are set appropriately).
ERRORS
- MGO_E_ICE - An internal error occurred. See MGOerrmsg for details
- MGO_E_KRB - Kerberos authentication error. See MGOerrmsg for details
- MGO_E_LSC - LSC authentication error. See MGOerrmsg for details
- MGO_E_PWD - Password authentication error. See MGOerrmsg for details
- MGO_E_SNA - No Mango servers are available. Try again later?
SEE ALSO
MGOdisconnect(),
MGOinitialize()