1.1.24.9 listen
C
int listen(int fd, int backlog)
Description
Listen for connections on a socket.
Parameters
Parameters | Description |
---|---|
fd | Socket file descriptor. |
backlog | Maximum number of pending connections, currently ignored. |
Returns
0 - Success.
-1 - Error,
errno
set.
Remarks
errno | Description |
---|---|
EADDRINUSE | The referred to by fd is not bound to a local port. |
EBADF | The argument fd is not a valid file descriptor. |
EOPNOTSUPP | The socket is not of a type that supports the listen() operation. |