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:

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

SEE ALSO

MGOdisconnect(), MGOinitialize()