diff options
author | julian <julian@FreeBSD.org> | 1999-11-21 12:03:00 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 1999-11-21 12:03:00 +0000 |
commit | d655bdb1cd68118a4aef6af9143d8ab360890bc8 (patch) | |
tree | d7719460074f014ce2bfa0516ed6bff2d615e519 /share/man/man4/ng_socket.4 | |
parent | ff227a07ea9a4c70d2185c81b1cfc4e65ecca43b (diff) | |
download | FreeBSD-src-d655bdb1cd68118a4aef6af9143d8ab360890bc8.zip FreeBSD-src-d655bdb1cd68118a4aef6af9143d8ab360890bc8.tar.gz |
Document new feature (support for write(2) when 1 hook attached).
Diffstat (limited to 'share/man/man4/ng_socket.4')
-rw-r--r-- | share/man/man4/ng_socket.4 | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/share/man/man4/ng_socket.4 b/share/man/man4/ng_socket.4 index 1ee388f..69dcd3f 100644 --- a/share/man/man4/ng_socket.4 +++ b/share/man/man4/ng_socket.4 @@ -101,6 +101,16 @@ contains the name of the .Em hook on which the data was received or should be sent. .Pp +As a special case, to allow netgraph data sockets to be used as stdin or stdout +on naive programs, a +.Xr sendto 2 +with a NULL sockaddr pointer, a +.Xr send 2 +or a +.Xr write 2 +will succeed in the case where there is exactly ONE hook attached to +the socket node, (and thus the path is unambiguous). +.Pp There is a user library that simplifies using netgraph sockets; see .Xr netgraph 3 . .Sh HOOKS |