mirror of /home/gitosis/repositories/libowfat.git
Mirror of :pserver:cvs@cvs.fefe.de:/cvs libowfat
https://www.fefe.de/libowfat/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
834 B
30 lines
834 B
.TH socket_fastopen 3 |
|
.SH NAME |
|
socket_fastopen \- enable TCP Fast Open on a server-side TCP socket |
|
.SH SYNTAX |
|
.B #include <socket.h> |
|
|
|
int \fBsocket_fastopen\fP(int \fIs\fR); |
|
.SH DESCRIPTION |
|
socket_fastopen enables TCP Fast Open support on a server-side TCP |
|
socket. Call this before socket_listen(). If the platform does not |
|
support this functionality, returns -1 and sets errno to ENOPROTOOPT (or |
|
ENOSYS if the platform does not define ENOPROTOOPT). |
|
|
|
Normally socket_fastopen returns 0. If anything goes wrong, socket_fastopen |
|
returns -1, setting errno appropriately. |
|
|
|
.SH EXAMPLE |
|
#include <socket.h> |
|
|
|
int \fIs\fR; |
|
char \fIip\fR[4]; |
|
uint16 \fIp\fR; |
|
|
|
\fIs\fR = socket_tcp4b(); |
|
socket_fastopen(s); |
|
socket_bind4_reuse(s,ip,p); |
|
socket_listen(16); |
|
|
|
.SH "SEE ALSO" |
|
socket_fastopen_connect4(3), socket_fastopen_connect6(3)
|
|
|