
     ssssoooocccckkkkeeeetttt____bbbbiiiinnnndddd((((3333))))         MMMMuuuuddddOOOOSSSS ((((5555 SSSSeeeepppp 1111999999994444))))          ssssoooocccckkkkeeeetttt____bbbbiiiinnnndddd((((3333))))

     NNNNAAAAMMMMEEEE
          socket_bind() - bind a name to a socket

     SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
          #include <socket_err.h>

          int socket_bind( int s, int port );

     DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
          socket_bind() assigns a name to an unnamed socket. When a
          socket is created with socket_create(3) it exists in a name
          space (address family) but has no name assigned.
          socket_bind() requests that the port be assigned to the
          socket s.

     RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEESSSS
          socket_bind() returns:

               EESUCCESS on success.

               a negative value indicated below on error.

     EEEERRRRRRRROOOORRRRSSSS
          EEFDRANGE      Descriptor out of range.

          EEBADF         Descriptor is invalid.

          EESECURITY     Security violation attempted.

          EEISBOUND      Socket is already bound.

          EEADDRINUSE    Address already in use.

          EEBIND         Problem with bind.

          EEGETSOCKNAME  Problem with getsockname.

     SSSSEEEEEEEE AAAALLLLSSSSOOOO
          socket_connect(3), socket_create(3), socket_listen(3)

     Page 1                                          (printed 3/16/95)

