mirror of https://github.com/mkerrisk/man-pages
Added new EXAMPLE section referring to example in getaddrinfo.3
This commit is contained in:
parent
cb5f1a355d
commit
1c27853f55
|
@ -241,10 +241,17 @@ also used by glibc.
|
|||
See also
|
||||
.BR accept (2).
|
||||
.SH EXAMPLE
|
||||
.\" unix.7 refers to this example.
|
||||
An example of the use of
|
||||
.BR bind ()
|
||||
with Internet domain sockets can be found in
|
||||
.BR getaddrinfo (3).
|
||||
|
||||
The following example shows how to bind a stream socket in the Unix
|
||||
.RB ( AF_UNIX )
|
||||
domain, and accept connections:
|
||||
.\" listen.7 refers to this example.
|
||||
.\" accept.7 refers to this example.
|
||||
.\" unix.7 refers to this example.
|
||||
|
||||
.in +0.25in
|
||||
.nf
|
||||
|
|
|
@ -252,6 +252,11 @@ Unconnecting a socket by calling
|
|||
with a
|
||||
.B AF_UNSPEC
|
||||
address is not yet implemented.
|
||||
.SH EXAMPLE
|
||||
An example of the use of
|
||||
.BR connect ()
|
||||
is shown in
|
||||
.BR getaddrinfo (3).
|
||||
.SH "SEE ALSO"
|
||||
.BR accept (2),
|
||||
.BR bind (2),
|
||||
|
|
|
@ -438,6 +438,11 @@ but glibc currently (2.4) types it as
|
|||
.\" The problem is an underlying kernel issue: the size of the
|
||||
.\" __kernel_size_t type used to type this field varies
|
||||
.\" across architectures, but socklen_t is always 32 bits.
|
||||
.SH EXAMPLE
|
||||
An example of the use of
|
||||
.BR recvfrom ()
|
||||
is shown in
|
||||
.BR getaddrinfo (3).
|
||||
.SH "SEE ALSO"
|
||||
.BR fcntl (2),
|
||||
.BR getsockopt (2),
|
||||
|
|
|
@ -382,6 +382,11 @@ but glibc currently (2.4) types it as
|
|||
.\" across architectures, but socklen_t is always 32 bits.
|
||||
.SH BUGS
|
||||
Linux may return EPIPE instead of ENOTCONN.
|
||||
.SH EXAMPLE
|
||||
An example of the use of
|
||||
.BR sendto ()
|
||||
is shown in
|
||||
.BR getaddrinfo (3).
|
||||
.SH "SEE ALSO"
|
||||
.BR fcntl (2),
|
||||
.BR getsockopt (2),
|
||||
|
|
|
@ -333,6 +333,11 @@ standards use AF_* everywhere.
|
|||
.SH BUGS
|
||||
.B SOCK_UUCP
|
||||
is not implemented yet.
|
||||
.SH EXAMPLE
|
||||
An example of the use of
|
||||
.BR socket ()
|
||||
is shown in
|
||||
.BR getaddrinfo (3).
|
||||
.SH "SEE ALSO"
|
||||
.BR accept (2),
|
||||
.BR bind (2),
|
||||
|
|
Loading…
Reference in New Issue