diff options
author | ru <ru@FreeBSD.org> | 2005-10-28 14:15:54 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2005-10-28 14:15:54 +0000 |
commit | 6b04c23b7901cbe7658103adf097e804e1b416bc (patch) | |
tree | de43480919d68f9900c3e5496cc9fbe7c3095bb3 /share/man/man4/ng_ksocket.4 | |
parent | 8723c51d6b994db26e2f2f8e1a5878f92e8156f2 (diff) | |
download | FreeBSD-src-6b04c23b7901cbe7658103adf097e804e1b416bc.zip FreeBSD-src-6b04c23b7901cbe7658103adf097e804e1b416bc.tar.gz |
Belatedly document the NGM_KSOCKET_ACCEPT ("accept") control message.
Diffstat (limited to 'share/man/man4/ng_ksocket.4')
-rw-r--r-- | share/man/man4/ng_ksocket.4 | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/share/man/man4/ng_ksocket.4 b/share/man/man4/ng_ksocket.4 index 600a388..c61b1c2 100644 --- a/share/man/man4/ng_ksocket.4 +++ b/share/man/man4/ng_ksocket.4 @@ -34,7 +34,7 @@ .\" .\" $FreeBSD$ .\" -.Dd June 8, 2004 +.Dd October 28, 2005 .Dt NG_KSOCKET 4 .Os .Sh NAME @@ -133,7 +133,21 @@ The .Vt "struct sockaddr" destination address parameter should be supplied as an argument. .It Dv NGM_KSOCKET_ACCEPT -Currently unimplemented. +Equivalent to the +.Xr accept 2 +system call on a non-blocking socket. +If there is a pending connection on the queue, +a new socket and a corresponding cloned node are created. +Returned are the cloned node's ID and a peer name (as +.Vt "struct sockaddr" ) . +If there are no pending connections, +this control message returns nothing, +and a connected node will receive the above message asynchronously, +when a connection is established. +.Pp +A cloned node supports a single hook with an arbitrary name. +If not connected, a node disappears when its parent node is destroyed. +Once connected, it becomes an independent node. .It Dv NGM_KSOCKET_GETNAME Equivalent to the .Xr getsockname 2 |