connect_socket(3)

NAME
connect_socket - connects to server socket

SYNOPSIS
#include "types.h"
#include "channel.h"
Socket *connect_socket(const char *hostname,int port,int wait);

DESCRIPTION
The arguments of connect_socket are:

hostname
    Set name of host to connect.

port
    Set port number of TCP/IP connection.

wait
    Set maximum time to wait for connection (sec). .

RETURN VALUE
Pointer to socket is returned on success and NULL in case of failure.

AUTHOR
Werner von Bloh (bloh@pik-potsdam.de)

SEE ALSO
close_socket(3), open_socket(3)