#include <foo.h> -> #include <libowfat/foo.h>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
fmt_ip4 \- write a formatted ASCII representation of an IPv4 number
|
||||
.SH SYNTAX
|
||||
.B #include <ip4.h>
|
||||
.B #include <libowfat/ip4.h>
|
||||
|
||||
unsigned int \fBfmt_ip4\fP(char *\fIdest\fR,const char \fIip\fR[4]);
|
||||
.SH DESCRIPTION
|
||||
@@ -18,7 +18,7 @@ fmt_ip4 does not append \\0.
|
||||
For convenience, ip4.h defines the integer IP4_FMT to be big enough to
|
||||
contain every possible fmt_ip4 output plus \\0.
|
||||
.SH EXAMPLE
|
||||
#include <ip4.h>
|
||||
#include <libowfat/ip4.h>
|
||||
|
||||
char buf[IP4_FMT];
|
||||
char ip[4];
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
fmt_ip6 \- write a formatted ASCII representation of an IPv6 number
|
||||
.SH SYNTAX
|
||||
.B #include <ip6.h>
|
||||
.B #include <libowfat/ip6.h>
|
||||
|
||||
unsigned int \fBfmt_ip6\fP(char *\fIdest\fR,const char \fIip\fR[16]);
|
||||
.SH DESCRIPTION
|
||||
@@ -23,7 +23,7 @@ fmt_ip6 does not append \\0.
|
||||
For convenience, ip6.h defines the integer IP6_FMT to be big enough to
|
||||
contain every possible fmt_ip6 output plus \\0.
|
||||
.SH EXAMPLE
|
||||
#include <ip6.h>
|
||||
#include <libowfat/ip6.h>
|
||||
|
||||
char buf[IP6_FMT];
|
||||
char ip[16];
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
fmt_ip6_flat \- write a formatted ASCII representation of an IPv6 number
|
||||
.SH SYNTAX
|
||||
.B #include <ip6.h>
|
||||
.B #include <libowfat/ip6.h>
|
||||
|
||||
unsigned int \fBfmt_ip6_flat\fP(char *\fIdest\fR,const char \fIip\fR[16]);
|
||||
.SH DESCRIPTION
|
||||
@@ -23,7 +23,7 @@ fmt_ip6_flat does not append \\0.
|
||||
For convenience, ip6.h defines the integer IP6_FMT to be big enough to
|
||||
contain every possible fmt_ip6_flat output plus \\0.
|
||||
.SH EXAMPLE
|
||||
#include <ip6.h>
|
||||
#include <libowfat/ip6.h>
|
||||
|
||||
char buf[IP6_FMT];
|
||||
char ip[16];
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
fmt_ip6c \- write a formatted ASCII representation of an IPv6 number
|
||||
.SH SYNTAX
|
||||
.B #include <ip6.h>
|
||||
.B #include <libowfat/ip6.h>
|
||||
|
||||
unsigned int \fBfmt_ip6c\fP(char *\fIdest\fR,const char \fIip\fR[16]);
|
||||
.SH DESCRIPTION
|
||||
@@ -23,7 +23,7 @@ fmt_ip6c does not append \\0.
|
||||
For convenience, ip6.h defines the integer IP6_FMT to be big enough to
|
||||
contain every possible fmt_ip6c output plus \\0.
|
||||
.SH EXAMPLE
|
||||
#include <ip6.h>
|
||||
#include <libowfat/ip6.h>
|
||||
|
||||
char buf[IP6_FMT];
|
||||
char ip[16];
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
fmt_ip6if \- write a formatted ASCII representation of an IPv6 number
|
||||
.SH SYNTAX
|
||||
.B #include <ip6.h>
|
||||
.B #include <libowfat/ip6.h>
|
||||
|
||||
unsigned int \fBfmt_ip6if\fP(char *\fIdest\fR,const char \fIip\fR[16],uint32 \fIscope_id\fR);
|
||||
.SH DESCRIPTION
|
||||
@@ -25,7 +25,7 @@ possible fmt_ip6 output plus \\0. However, for fmt_ip6if you need to
|
||||
add 1 for the '%' and IF_NAMESIZE from <net/if.h> for the interface
|
||||
name.
|
||||
.SH EXAMPLE
|
||||
#include <ip6.h>
|
||||
#include <libowfat/ip6.h>
|
||||
|
||||
char buf[IP6_FMT];
|
||||
char ip[16];
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
fmt_ip6ifc \- write a formatted ASCII representation of an IPv6 number
|
||||
.SH SYNTAX
|
||||
.B #include <ip6.h>
|
||||
.B #include <libowfat/ip6.h>
|
||||
|
||||
unsigned int \fBfmt_ip6ifc\fP(char *\fIdest\fR,const char \fIip\fR[16],uint32 \fIscope_id\fR);
|
||||
.SH DESCRIPTION
|
||||
@@ -25,7 +25,7 @@ possible fmt_ip6 output plus \\0. However, for fmt_ip6ifc you need to
|
||||
add 1 for the '%' and IF_NAMESIZE from <net/if.h> for the interface
|
||||
name.
|
||||
.SH EXAMPLE
|
||||
#include <ip6.h>
|
||||
#include <libowfat/ip6.h>
|
||||
|
||||
char buf[IP6_FMT];
|
||||
char ip[16];
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
scan_ip4 \- parse an IPv4 number in dotted-decimal notation
|
||||
.SH SYNTAX
|
||||
.B #include <ip4.h>
|
||||
.B #include <libowfat/ip4.h>
|
||||
|
||||
int \fBscan_ip4\fP(const char *\fIsrc\fR,char \fIip\fR[4]);
|
||||
.SH DESCRIPTION
|
||||
@@ -13,9 +13,9 @@ number of bytes read from \fIsrc\fR or 0 if the parsing failed.
|
||||
Unlike many other IP parsing routines, scan_ip4 does not recognize octal
|
||||
(like \fB0177.0.0.1\fR) or hexadecimal numbers (like \fB0x7f000001\fR).
|
||||
.SH EXAMPLE
|
||||
#include <str.h>
|
||||
#include <libowfat/str.h>
|
||||
.br
|
||||
#include <ip4.h>
|
||||
#include <libowfat/ip4.h>
|
||||
|
||||
char buf[]="160.45.40.10";
|
||||
char ip[4];
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
scan_ip6 \- parse an IPv6 number in ASCII representation
|
||||
.SH SYNTAX
|
||||
.B #include <ip6.h>
|
||||
.B #include <libowfat/ip6.h>
|
||||
|
||||
int \fBscan_ip6\fP(const char *\fIsrc\fR,char \fIip\fR[16]);
|
||||
.SH DESCRIPTION
|
||||
@@ -22,9 +22,9 @@ Unlike many other IP parsing routines, scan_ip6 does not recognize octal
|
||||
(like \fB0177.0.0.1\fR) or hexadecimal numbers (like \fB0x7f000001\fR)
|
||||
in the IPv4 part.
|
||||
.SH EXAMPLE
|
||||
#include <str.h>
|
||||
#include <libowfat/str.h>
|
||||
.br
|
||||
#include <ip6.h>
|
||||
#include <libowfat/ip6.h>
|
||||
|
||||
char buf[]="::1";
|
||||
char ip[16];
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
scan_ip6_flat \- parse an IPv6 number in flat ASCII representation
|
||||
.SH SYNTAX
|
||||
.B #include <ip6.h>
|
||||
.B #include <libowfat/ip6.h>
|
||||
|
||||
int \fBscan_ip6_flat\fP(const char *\fIsrc\fR,char \fIip\fR[16]);
|
||||
.SH DESCRIPTION
|
||||
@@ -14,9 +14,9 @@ scan_ip6_flat accepts upper and lower case hex letters.
|
||||
|
||||
The flat representation should have been output by fmt_ip6_flat.
|
||||
.SH EXAMPLE
|
||||
#include <str.h>
|
||||
#include <libowfat/str.h>
|
||||
.br
|
||||
#include <ip6.h>
|
||||
#include <libowfat/ip6.h>
|
||||
|
||||
char buf[]="00000000000000000000000000000001";
|
||||
char ip[16];
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
scan_ip6 \- parse an IPv6 number and interface in ASCII representation
|
||||
.SH SYNTAX
|
||||
.B #include <ip6.h>
|
||||
.B #include <libowfat/ip6.h>
|
||||
|
||||
int \fBscan_ip6if\fP(const char *\fIsrc\fR,char \fIip\fR[16],uint32* scope_id);
|
||||
.SH DESCRIPTION
|
||||
@@ -27,9 +27,9 @@ Unlike many other IP parsing routines, scan_ip6if does not recognize octal
|
||||
(like \fB0177.0.0.1\fR) or hexadecimal numbers (like \fB0x7f000001\fR)
|
||||
in the IPv4 part.
|
||||
.SH EXAMPLE
|
||||
#include <str.h>
|
||||
#include <libowfat/str.h>
|
||||
.br
|
||||
#include <ip6.h>
|
||||
#include <libowfat/ip6.h>
|
||||
|
||||
char buf[]="::1%lo";
|
||||
char ip[16];
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
socket_accept4 \- accept an IPv4 TCP connection on a socket
|
||||
.SH SYNTAX
|
||||
.B #include <socket.h>
|
||||
.B #include <libowfat/socket.h>
|
||||
|
||||
int \fBsocket_accept4\fP(int \fIs\fR,char \fIip\fR[4],uint16 *\fIport\fR);
|
||||
.SH DESCRIPTION
|
||||
@@ -19,7 +19,7 @@ If something goes wrong, socket_accept4 returns -1, setting errno
|
||||
appropriately, without creating a new socket.
|
||||
|
||||
.SH EXAMPLE
|
||||
#include <socket.h>
|
||||
#include <libowfat/socket.h>
|
||||
|
||||
int \fIs\fR;
|
||||
char \fIip\fR[4];
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
socket_accept6 \- accept an IPv6 TCP connection on a socket
|
||||
.SH SYNTAX
|
||||
.B #include <socket.h>
|
||||
.B #include <libowfat/socket.h>
|
||||
|
||||
int \fBsocket_accept6\fP(int \fIs\fR,char \fIip\fR[16],uint16 *\fIport\fR,uint32 *\fIscope_id\fR);
|
||||
.SH DESCRIPTION
|
||||
@@ -22,7 +22,7 @@ If something goes wrong, socket_accept6 returns -1, setting errno
|
||||
appropriately, without creating a new socket.
|
||||
|
||||
.SH EXAMPLE
|
||||
#include <socket.h>
|
||||
#include <libowfat/socket.h>
|
||||
|
||||
int \fIs\fR;
|
||||
char \fIip\fR[16];
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
socket_bind4 \- set the local IP address and port of a socket
|
||||
.SH SYNTAX
|
||||
.B #include <socket.h>
|
||||
.B #include <libowfat/socket.h>
|
||||
|
||||
int \fBsocket_bind4\fP(int \fIs\fR,char \fIip\fR[4],uint16 \fIport\fR);
|
||||
.SH DESCRIPTION
|
||||
@@ -16,7 +16,7 @@ Normally socket_bind4 returns 0. If anything goes wrong, socket_bind4
|
||||
returns -1, setting errno appropriately.
|
||||
|
||||
.SH EXAMPLE
|
||||
#include <socket.h>
|
||||
#include <libowfat/socket.h>
|
||||
|
||||
int \fIs\fR;
|
||||
char \fIip\fR[4];
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
socket_bind4_reuse \- set the local IP address and port of a socket
|
||||
.SH SYNTAX
|
||||
.B #include <socket.h>
|
||||
.B #include <libowfat/socket.h>
|
||||
|
||||
int \fBsocket_bind4_reuse\fP(int \fIs\fR,char \fIip\fR[4],uint16 \fIport\fR);
|
||||
.SH DESCRIPTION
|
||||
@@ -19,7 +19,7 @@ Unlike socket_bind4 this function will also tell the operating system
|
||||
that the address is to be reused soon, which turns off the normal pause
|
||||
before this IP and port can be bound again.
|
||||
.SH EXAMPLE
|
||||
#include <socket.h>
|
||||
#include <libowfat/socket.h>
|
||||
|
||||
int \fIs\fR;
|
||||
char \fIip\fR[4];
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
socket_bind6 \- set the local IP address and port of a socket
|
||||
.SH SYNTAX
|
||||
.B #include <socket.h>
|
||||
.B #include <libowfat/socket.h>
|
||||
|
||||
int \fBsocket_bind6\fP(int \fIs\fR, char \fIip\fR[16], uint16 \fIport\fR,
|
||||
uint32 \fIscope_id\fR);
|
||||
@@ -21,7 +21,7 @@ it specifies the interface number on which to bind. The interface
|
||||
number for a given network interface name can be found with
|
||||
\fBsocket_getifidx\fR.
|
||||
.SH EXAMPLE
|
||||
#include <socket.h>
|
||||
#include <libowfat/socket.h>
|
||||
|
||||
int \fIs\fR;
|
||||
char \fIip\fR[16];
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
socket_bind6_reuse \- set the local IP address and port of a socket
|
||||
.SH SYNTAX
|
||||
.B #include <socket.h>
|
||||
.B #include <libowfat/socket.h>
|
||||
|
||||
int \fBsocket_bind6_reuse\fP(int \fIs\fR,char \fIip\fR[16],uint16 \fIport\fR,
|
||||
uint32 \fIscope_id\fR);
|
||||
@@ -25,7 +25,7 @@ Unlike socket_bind6 this function will also tell the operating system
|
||||
that the address is to be reused soon, which turns off the normal pause
|
||||
before this IP and port can be bound again.
|
||||
.SH EXAMPLE
|
||||
#include <socket.h>
|
||||
#include <libowfat/socket.h>
|
||||
|
||||
int \fIs\fR;
|
||||
char \fIip\fR[16];
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
socket_broadcast \- set UDP socket to broadcast mode
|
||||
.SH SYNTAX
|
||||
.B #include <socket.h>
|
||||
.B #include <libowfat/socket.h>
|
||||
|
||||
int \fBsocket_broadcast\fP(int \fIs\fR);
|
||||
.SH DESCRIPTION
|
||||
@@ -16,7 +16,7 @@ If anything goes wrong, socket_broadcast returns -1, setting errno
|
||||
appropriately.
|
||||
|
||||
.SH EXAMPLE
|
||||
#include <socket.h>
|
||||
#include <libowfat/socket.h>
|
||||
|
||||
int \fIs\fR;
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
socket_connect4 \- attempt to make a TCP connection
|
||||
.SH SYNTAX
|
||||
.B #include <socket.h>
|
||||
.B #include <libowfat/socket.h>
|
||||
|
||||
int \fBsocket_connect4\fP(int \fIs\fR,const char \fIip\fR[4],uint16 \fIport\fR);
|
||||
.SH DESCRIPTION
|
||||
@@ -34,7 +34,7 @@ You can call socket_connect4 without calling socket_bind4. This has the
|
||||
effect as first calling socket_bind4 with IP address 0.0.0.0 and port 0.
|
||||
|
||||
.SH EXAMPLE
|
||||
#include <socket.h>
|
||||
#include <libowfat/socket.h>
|
||||
|
||||
int \fIs\fR;
|
||||
char \fIip\fR[4];
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
socket_connect6 \- attempt to make a TCP connection
|
||||
.SH SYNTAX
|
||||
.B #include <socket.h>
|
||||
.B #include <libowfat/socket.h>
|
||||
|
||||
int \fBsocket_connect6\fP(int \fIs\fR, const char \fIip\fR[16],
|
||||
uint16 \fIport\fR,uint32 \fIscope_id\fR);
|
||||
@@ -40,7 +40,7 @@ You can call socket_connect6 without calling socket_bind6. This has the
|
||||
effect as first calling socket_bind6 with IP address :: and port 0.
|
||||
|
||||
.SH EXAMPLE
|
||||
#include <socket.h>
|
||||
#include <libowfat/socket.h>
|
||||
|
||||
int \fIs\fR;
|
||||
char \fIip\fR[16];
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
socket_connected \- is a connection established on a socket?
|
||||
.SH SYNTAX
|
||||
.B #include <socket.h>
|
||||
.B #include <libowfat/socket.h>
|
||||
|
||||
int \fBsocket_connected\fP(int \fIs\fR);
|
||||
.SH DESCRIPTION
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
socket_fastopen \- enable TCP Fast Open on a server-side TCP socket
|
||||
.SH SYNTAX
|
||||
.B #include <socket.h>
|
||||
.B #include <libowfat/socket.h>
|
||||
|
||||
int \fBsocket_fastopen\fP(int \fIs\fR);
|
||||
.SH DESCRIPTION
|
||||
@@ -15,7 +15,7 @@ Normally socket_fastopen returns 0. If anything goes wrong, socket_fastopen
|
||||
returns -1, setting errno appropriately.
|
||||
|
||||
.SH EXAMPLE
|
||||
#include <socket.h>
|
||||
#include <libowfat/socket.h>
|
||||
|
||||
int \fIs\fR;
|
||||
char \fIip\fR[4];
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
socket_fastopen_connect4 \- make a TCP connection and send some data
|
||||
.SH SYNTAX
|
||||
.B #include <socket.h>
|
||||
.B #include <libowfat/socket.h>
|
||||
|
||||
ssize_t \fBsocket_fastopen_connect4\fP(int \fIs\fR,const char \fIip\fR[4],uint16 \fIport\fR,
|
||||
const char* \fIbuf\fR,size_t \fIlen\fR);
|
||||
@@ -44,7 +44,7 @@ You can call socket_connect4 without calling socket_bind4. This has the
|
||||
effect as first calling socket_bind4 with IP address 0.0.0.0 and port 0.
|
||||
|
||||
.SH EXAMPLE
|
||||
#include <socket.h>
|
||||
#include <libowfat/socket.h>
|
||||
|
||||
int \fIs\fR;
|
||||
char \fIip\fR[4];
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
socket_fastopen_connect6 \- make a TCP connection and send some data
|
||||
.SH SYNTAX
|
||||
.B #include <socket.h>
|
||||
.B #include <libowfat/socket.h>
|
||||
|
||||
ssize_t \fBsocket_fastopen_connect6\fP(int \fIs\fR,
|
||||
const char \fIip\fR[16],uint16 \fIport\fR,uint32 \fIscope_id\fR,
|
||||
@@ -45,7 +45,7 @@ You can call socket_connect6 without calling socket_bind6. This has the
|
||||
effect as first calling socket_bind6 with IP address :: and port 0.
|
||||
|
||||
.SH EXAMPLE
|
||||
#include <socket.h>
|
||||
#include <libowfat/socket.h>
|
||||
|
||||
int \fIs\fR;
|
||||
char \fIip\fR[16];
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
socket_getifidx \- get interface number
|
||||
.SH SYNTAX
|
||||
.B #include <socket.h>
|
||||
.B #include <libowfat/socket.h>
|
||||
|
||||
int \fBsocket_getifidx\fP(const char* \fIifname\fR);
|
||||
.SH DESCRIPTION
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
socket_getifname \- get interface name
|
||||
.SH SYNTAX
|
||||
.B #include <socket.h>
|
||||
.B #include <libowfat/socket.h>
|
||||
|
||||
const char* \fBsocket_getifname\fP(uint32 \fIinterface\fR);
|
||||
.SH DESCRIPTION
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
socket_listen \- attempt to make a TCP connection
|
||||
.SH SYNTAX
|
||||
.B #include <socket.h>
|
||||
.B #include <libowfat/socket.h>
|
||||
|
||||
int \fBsocket_listen\fP(int \fIs\fR,int \fIn\fR);
|
||||
.SH DESCRIPTION
|
||||
@@ -15,7 +15,7 @@ If anything goes wrong, socket_listen returns -1, setting errno
|
||||
appropriately.
|
||||
|
||||
.SH EXAMPLE
|
||||
#include <socket.h>
|
||||
#include <libowfat/socket.h>
|
||||
|
||||
int \fIs\fR;
|
||||
char \fIip\fR[16];
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
socket_local4 \- get local IP address of socket
|
||||
.SH SYNTAX
|
||||
.B #include <socket.h>
|
||||
.B #include <libowfat/socket.h>
|
||||
|
||||
int \fBsocket_local4\fP(int \fIs\fR,char \fIip\fR[4],uint16 *\fIport\fR);
|
||||
.SH DESCRIPTION
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
socket_local6 \- get local IP address of socket
|
||||
.SH SYNTAX
|
||||
.B #include <socket.h>
|
||||
.B #include <libowfat/socket.h>
|
||||
|
||||
int \fBsocket_local6\fP(int \fIs\fR,char \fIip\fR[16],uint16 *\fIport\fR,uint32 *\fIscope_id\fR);
|
||||
.SH DESCRIPTION
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
socket_mchopcount6 \- set multicast hop count
|
||||
.SH SYNTAX
|
||||
.B #include <socket.h>
|
||||
.B #include <libowfat/socket.h>
|
||||
|
||||
int \fBsocket_mchopcount6\fP(int \fIs\fR,char \fITTL\fR);
|
||||
.SH DESCRIPTION
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
socket_mcjoin4 \- join a multicast group
|
||||
.SH SYNTAX
|
||||
.B #include <socket.h>
|
||||
.B #include <libowfat/socket.h>
|
||||
|
||||
int \fBsocket_mcjoin4\fP(int \fIs\fR,const char \fIgroupip\fR[4],const char \fIinterface\fR[4]);
|
||||
.SH DESCRIPTION
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
socket_mcjoin6 \- join a multicast group
|
||||
.SH SYNTAX
|
||||
.B #include <socket.h>
|
||||
.B #include <libowfat/socket.h>
|
||||
|
||||
int \fBsocket_mcjoin6\fP(int \fIs\fR,const char \fIgroupip\fR[16],uint32 \fIinterface\fR);
|
||||
.SH DESCRIPTION
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
socket_mcleave4 \- leave a multicast group
|
||||
.SH SYNTAX
|
||||
.B #include <socket.h>
|
||||
.B #include <libowfat/socket.h>
|
||||
|
||||
int \fBsocket_mcleave4\fP(int \fIs\fR, const char \fIgroupip\fR[4]);
|
||||
.SH DESCRIPTION
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
socket_mcleave6 \- leave a multicast group
|
||||
.SH SYNTAX
|
||||
.B #include <socket.h>
|
||||
.B #include <libowfat/socket.h>
|
||||
|
||||
int \fBsocket_mcleave6\fP(int \fIs\fR, const char \fIgroupip\fR[16]);
|
||||
.SH DESCRIPTION
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
socket_mcloop4 \- set multicast loopback
|
||||
.SH SYNTAX
|
||||
.B #include <socket.h>
|
||||
.B #include <libowfat/socket.h>
|
||||
|
||||
int \fBsocket_mcloop4\fP(int \fIs\fR,char \fIloop\fR);
|
||||
.SH DESCRIPTION
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
socket_mcloop6 \- set multicast loopback
|
||||
.SH SYNTAX
|
||||
.B #include <socket.h>
|
||||
.B #include <libowfat/socket.h>
|
||||
|
||||
int \fBsocket_mcloop6\fP(int \fIs\fR,char \fIloop\fR);
|
||||
.SH DESCRIPTION
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
socket_mcttl4 \- set multicast ttl
|
||||
.SH SYNTAX
|
||||
.B #include <socket.h>
|
||||
.B #include <libowfat/socket.h>
|
||||
|
||||
int \fBsocket_mcttl4\fP(int \fIs\fR,char \fITTL\fR);
|
||||
.SH DESCRIPTION
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
socket_quickack \- turn TCP Quick ACK mode on or off
|
||||
.SH SYNTAX
|
||||
.B #include <socket.h>
|
||||
.B #include <libowfat/socket.h>
|
||||
|
||||
int \fBsocket_quickack\fP(int \fIs\fR,int \fIvalue\fR);
|
||||
.SH DESCRIPTION
|
||||
@@ -23,7 +23,7 @@ Normally socket_quickack returns 0. If anything goes wrong, socket_quickack
|
||||
returns -1, setting errno appropriately.
|
||||
|
||||
.SH EXAMPLE
|
||||
#include <socket.h>
|
||||
#include <libowfat/socket.h>
|
||||
|
||||
int \fIs\fR;
|
||||
char \fIip\fR[4];
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
socket_recv4 \- receive a UDP datagram
|
||||
.SH SYNTAX
|
||||
.B #include <socket.h>
|
||||
.B #include <libowfat/socket.h>
|
||||
|
||||
ssize_t \fBsocket_recv4\fP(int \fIs\fR, char* \fIbuf\fR, size_t \fIlen\fR,
|
||||
char \fIip\fR[4],uint16* \fIport\fR);
|
||||
@@ -15,7 +15,7 @@ bytes actually received (or -1 if anything went wrong).
|
||||
socket_recv4 returns the number of bytes in the datagram if one was
|
||||
received. If not, it returns -1 and sets errno appropriately.
|
||||
.SH EXAMPLE
|
||||
#include <socket.h>
|
||||
#include <libowfat/socket.h>
|
||||
|
||||
int \fIs\fR;
|
||||
char \fIip\fR[4];
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
socket_recv6 \- receive a UDP datagram
|
||||
.SH SYNTAX
|
||||
.B #include <socket.h>
|
||||
.B #include <libowfat/socket.h>
|
||||
|
||||
ssize_t \fBsocket_recv6\fP(int \fIs\fR, char* \fIbuf\fR, size_t \fIlen\fR,
|
||||
char \fIip\fR[16], uint16* \fIport\fR, uint32* \fIscope_id\fR);
|
||||
@@ -19,7 +19,7 @@ interface number, which can be translated into the name of the interface
|
||||
socket_recv6 returns the number of bytes in the datagram if one was
|
||||
received. If not, it returns -1 and sets errno appropriately.
|
||||
.SH EXAMPLE
|
||||
#include <socket.h>
|
||||
#include <libowfat/socket.h>
|
||||
|
||||
int \fIs\fR;
|
||||
char \fIip\fR[16];
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
socket_remote4 \- get remote IP address of socket
|
||||
.SH SYNTAX
|
||||
.B #include <socket.h>
|
||||
.B #include <libowfat/socket.h>
|
||||
|
||||
int \fBsocket_remote4\fP(int \fIs\fR,char \fIip\fR[4],uint16 *\fIport\fR);
|
||||
.SH DESCRIPTION
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
socket_remote6 \- get remote IP address of socket
|
||||
.SH SYNTAX
|
||||
.B #include <socket.h>
|
||||
.B #include <libowfat/socket.h>
|
||||
|
||||
int \fBsocket_remote6\fP(int \fIs\fR,char \fIip\fR[16],uint16 *\fIport\fR,uint32 *\fIscope_id\fR);
|
||||
.SH DESCRIPTION
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
socket_sctp4 \- create a non-blocking SCTP/IP stream socket
|
||||
.SH SYNTAX
|
||||
.B #include <socket.h>
|
||||
.B #include <libowfat/socket.h>
|
||||
|
||||
int \fBsocket_sctp4\fP();
|
||||
.SH DESCRIPTION
|
||||
@@ -12,7 +12,7 @@ socket_sctp4 returns -1, setting errno appropriately, without allocating
|
||||
any resources.
|
||||
|
||||
.SH EXAMPLE
|
||||
#include <socket.h>
|
||||
#include <libowfat/socket.h>
|
||||
|
||||
int \fIs\fR;
|
||||
char \fIip\fR[4];
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
socket_sctp4b \- create a blocking SCTP/IP stream socket
|
||||
.SH SYNTAX
|
||||
.B #include <socket.h>
|
||||
.B #include <libowfat/socket.h>
|
||||
|
||||
int \fBsocket_sctp4b\fP();
|
||||
.SH DESCRIPTION
|
||||
@@ -12,7 +12,7 @@ socket_sctp4b returns -1, setting errno appropriately, without allocating
|
||||
any resources.
|
||||
|
||||
.SH EXAMPLE
|
||||
#include <socket.h>
|
||||
#include <libowfat/socket.h>
|
||||
|
||||
int \fIs\fR;
|
||||
char \fIip\fR[4];
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
socket_sctp6 \- create a non-blocking IPv6 SCTP/IP stream socket
|
||||
.SH SYNTAX
|
||||
.B #include <socket.h>
|
||||
.B #include <libowfat/socket.h>
|
||||
|
||||
int \fBsocket_sctp6\fP();
|
||||
.SH DESCRIPTION
|
||||
@@ -12,7 +12,7 @@ socket_sctp6 returns -1, setting errno appropriately, without allocating
|
||||
any resources.
|
||||
|
||||
.SH EXAMPLE
|
||||
#include <socket.h>
|
||||
#include <libowfat/socket.h>
|
||||
|
||||
int \fIs\fR;
|
||||
char \fIip\fR[16];
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
socket_sctp6b \- create a blocking IPv6 SCTP/IP stream socket
|
||||
.SH SYNTAX
|
||||
.B #include <socket.h>
|
||||
.B #include <libowfat/socket.h>
|
||||
|
||||
int \fBsocket_sctp6b\fP();
|
||||
.SH DESCRIPTION
|
||||
@@ -12,7 +12,7 @@ socket_sctp6b returns -1, setting errno appropriately, without allocating
|
||||
any resources.
|
||||
|
||||
.SH EXAMPLE
|
||||
#include <socket.h>
|
||||
#include <libowfat/socket.h>
|
||||
|
||||
int \fIs\fR;
|
||||
char \fIip\fR[16];
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
socket_send4 \- send a UDP datagram
|
||||
.SH SYNTAX
|
||||
.B #include <socket.h>
|
||||
.B #include <libowfat/socket.h>
|
||||
|
||||
ssize_t \fBsocket_send4\fP(int \fIs\fR, const char* \fIbuf\fR, size_t \fIlen\fR,
|
||||
const char \fIip\fR[4],uint16 \fIport\fR);
|
||||
@@ -17,7 +17,7 @@ effect as first calling socket_bind4 with IP address 0.0.0.0 and port 0.
|
||||
socket_send4 returns 0 if the datagram was sent successfully. If not,
|
||||
it returns -1 and sets errno appropriately.
|
||||
.SH EXAMPLE
|
||||
#include <socket.h>
|
||||
#include <libowfat/socket.h>
|
||||
|
||||
int \fIs\fR;
|
||||
char \fIip\fR[4];
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
socket_send6 \- send a UDP datagram
|
||||
.SH SYNTAX
|
||||
.B #include <socket.h>
|
||||
.B #include <libowfat/socket.h>
|
||||
|
||||
ssize_t \fBsocket_send6\fP(int \fIs\fR, const char* \fIbuf\fR, size_t \fIlen\fR,
|
||||
const char \fIip\fR[16], uint16 \fIport\fR, uint32 \fIscope_id\fR);
|
||||
@@ -22,7 +22,7 @@ be queried with getifname. \fIscope_id\fR should normally be set to 0.
|
||||
socket_send6 returns 0 if the datagram was sent successfully. If not,
|
||||
it returns -1 and sets errno appropriately.
|
||||
.SH EXAMPLE
|
||||
#include <socket.h>
|
||||
#include <libowfat/socket.h>
|
||||
|
||||
int \fIs\fR;
|
||||
char \fIip\fR[16];
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
socket_tcp4 \- create a non-blocking TCP/IP stream socket
|
||||
.SH SYNTAX
|
||||
.B #include <socket.h>
|
||||
.B #include <libowfat/socket.h>
|
||||
|
||||
int \fBsocket_tcp4\fP();
|
||||
.SH DESCRIPTION
|
||||
@@ -12,7 +12,7 @@ socket_tcp4 returns -1, setting errno appropriately, without allocating
|
||||
any resources.
|
||||
|
||||
.SH EXAMPLE
|
||||
#include <socket.h>
|
||||
#include <libowfat/socket.h>
|
||||
|
||||
int \fIs\fR;
|
||||
char \fIip\fR[4];
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
socket_tcp4b \- create a blocking TCP/IP stream socket
|
||||
.SH SYNTAX
|
||||
.B #include <socket.h>
|
||||
.B #include <libowfat/socket.h>
|
||||
|
||||
int \fBsocket_tcp4b\fP();
|
||||
.SH DESCRIPTION
|
||||
@@ -12,7 +12,7 @@ socket_tcp4b returns -1, setting errno appropriately, without allocating
|
||||
any resources.
|
||||
|
||||
.SH EXAMPLE
|
||||
#include <socket.h>
|
||||
#include <libowfat/socket.h>
|
||||
|
||||
int \fIs\fR;
|
||||
char \fIip\fR[4];
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
socket_tcp6 \- create a non-blocking IPv6 TCP/IP stream socket
|
||||
.SH SYNTAX
|
||||
.B #include <socket.h>
|
||||
.B #include <libowfat/socket.h>
|
||||
|
||||
int \fBsocket_tcp6\fP();
|
||||
.SH DESCRIPTION
|
||||
@@ -12,7 +12,7 @@ socket_tcp6 returns -1, setting errno appropriately, without allocating
|
||||
any resources.
|
||||
|
||||
.SH EXAMPLE
|
||||
#include <socket.h>
|
||||
#include <libowfat/socket.h>
|
||||
|
||||
int \fIs\fR;
|
||||
char \fIip\fR[16];
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
socket_tcp6b \- create a blocking IPv6 TCP/IP stream socket
|
||||
.SH SYNTAX
|
||||
.B #include <socket.h>
|
||||
.B #include <libowfat/socket.h>
|
||||
|
||||
int \fBsocket_tcp6b\fP();
|
||||
.SH DESCRIPTION
|
||||
@@ -12,7 +12,7 @@ socket_tcp6b returns -1, setting errno appropriately, without allocating
|
||||
any resources.
|
||||
|
||||
.SH EXAMPLE
|
||||
#include <socket.h>
|
||||
#include <libowfat/socket.h>
|
||||
|
||||
int \fIs\fR;
|
||||
char \fIip\fR[16];
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
socket_udp4 \- create a non-blocking UDP/IP datagram socket
|
||||
.SH SYNTAX
|
||||
.B #include <socket.h>
|
||||
.B #include <libowfat/socket.h>
|
||||
|
||||
int \fBsocket_udp4\fP();
|
||||
.SH DESCRIPTION
|
||||
@@ -12,7 +12,7 @@ socket_udp4 returns -1, setting errno appropriately, without allocating
|
||||
any resources.
|
||||
|
||||
.SH EXAMPLE
|
||||
#include <socket.h>
|
||||
#include <libowfat/socket.h>
|
||||
|
||||
int \fIs\fR;
|
||||
char \fIip\fR[4];
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
socket_udp6 \- create a non-blocking IPv6 UDP/IP datagram socket
|
||||
.SH SYNTAX
|
||||
.B #include <socket.h>
|
||||
.B #include <libowfat/socket.h>
|
||||
|
||||
int \fBsocket_udp6\fP();
|
||||
.SH DESCRIPTION
|
||||
@@ -12,7 +12,7 @@ socket_udp6 returns -1, setting errno appropriately, without allocating
|
||||
any resources.
|
||||
|
||||
.SH EXAMPLE
|
||||
#include <socket.h>
|
||||
#include <libowfat/socket.h>
|
||||
|
||||
int \fIs\fR;
|
||||
char \fIip\fR[16];
|
||||
|
||||
Reference in New Issue
Block a user