Changeset View
Changeset View
Standalone View
Standalone View
lib/libsys/listen.2
| Show All 25 Lines | |||||
| .\" SUCH DAMAGE. | .\" SUCH DAMAGE. | ||||
| .\" | .\" | ||||
| .Dd April 30, 2023 | .Dd April 30, 2023 | ||||
| .Dt LISTEN 2 | .Dt LISTEN 2 | ||||
| .Os | .Os | ||||
| .Sh NAME | .Sh NAME | ||||
| .Nm listen | .Nm listen | ||||
| .Nd listen for connections on a socket | .Nd listen for connections on a socket | ||||
| .Sh LIBRARY | |||||
| .Lb libc | |||||
| .Sh SYNOPSIS | .Sh SYNOPSIS | ||||
| .Lb libc | |||||
| .In sys/socket.h | .In sys/socket.h | ||||
| .Ft int | .Ft int | ||||
| .Fn listen "int s" "int backlog" | .Fn listen "int s" "int backlog" | ||||
| .Sh DESCRIPTION | .Sh DESCRIPTION | ||||
| To accept connections, a socket | To accept connections, a socket | ||||
| is first created with | is first created with | ||||
| .Xr socket 2 , | .Xr socket 2 , | ||||
| a willingness to accept incoming connections and | a willingness to accept incoming connections and | ||||
| ▲ Show 20 Lines • Show All 157 Lines • Show Last 20 Lines | |||||