         NAME
              open_socket - opens server socket and starts listening

         SYNOPSIS
              #include "types.h"
              #include "channel.h"

              Socket *open_socket(int port,int wait);

         DESCRIPTION
              The arguments of open_socket are:

              port Set port number of TCP/IP connection.

              wait Set maximum time to wait for connection (sec). If zero
                   wait for unlimited time.

         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), connect_socket(3)