Provided by: manpages-zh_1.5.2-1_all bug

NAME

       listen - listen for connections on a socket

SYNOPSIS

       #include <sys/socket.h>

       int listen(int s, int backlog);

DESCRIPTION

       ,  socket(2) , listen .  accept(2) .  listen SOCK_STREAM SOCK_SEQPACKET
       .

        backlog .  , ECONNREFUSED.  ,,, .

NOTES

       TCP backlog Linux 2.2.  , .   tcp_max_syn_backlog  sysctl  syncookies,.
       tcp(7) .

RETURN VALUE

       0.-1,.  errno

ERRORS

       EBADF   s .

       ENOTSOCK
               s .

       EOPNOTSUPP
               listen .

CONFORMING TO

       Single Unix, 4.4BSD, POSIX 1003.1g.  listen 4.2BSD.

BUGS

          AF_INET,   backlog   SOMAXCONN   (Linux   2.0&2.2128),  SOMAXCONN  .
       BSD(BSD)backlog5.

SEE ALSO

       accept(2), connect(2), socket(2)

[]

       byeyear <love_my_love@263.net >

[]

       2002.01.27

linuxman:

       http://cmpp.linuxforum.net