File: test_TFO.cpp

package info (click to toggle)
entropybroker 2.9-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,600 kB
  • sloc: cpp: 14,386; sh: 934; makefile: 188; java: 148; perl: 12
file content (14 lines) | stat: -rw-r--r-- 231 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <stdio.h>
#include <netinet/tcp.h>
#include <sys/types.h>
#include <sys/socket.h>

int main(int argc, char *argv[])
{
	int fd = 0;
	int qlen = 5;

	setsockopt(fd, SOL_TCP, TCP_FASTOPEN, &qlen, sizeof(qlen));

	return 0;
}