1socket_fastopen(3)         Library Functions Manual         socket_fastopen(3)
2
3
4

NAME

6       socket_fastopen - enable TCP Fast Open on a server-side TCP socket
7

SYNTAX

9       #include <socket.h>
10
11       int socket_fastopen(int s);
12

DESCRIPTION

14       socket_fastopen  enables  TCP  Fast  Open  support on a server-side TCP
15       socket.  Call this before socket_listen().  If the  platform  does  not
16       support  this  functionality,  returns -1 and sets errno to ENOPROTOOPT
17       (or ENOSYS if the platform does not define ENOPROTOOPT).
18
19       Normally  socket_fastopen  returns   0.   If   anything   goes   wrong,
20       socket_fastopen returns -1, setting errno appropriately.
21
22

EXAMPLE

24         #include <socket.h>
25
26         int s;
27         char ip[4];
28         uint16 p;
29
30         s = socket_tcp4b();
31         socket_fastopen(s);
32         socket_bind4_reuse(s,ip,p);
33         socket_listen(16);
34
35

SEE ALSO

37       socket_fastopen_connect4(3), socket_fastopen_connect6(3)
38
39
40
41                                                            socket_fastopen(3)
Impressum