printf("IPv6 socket creation failed: %s\n", strerror(errno));
exit(1);
}
-
+#ifdef TCP_FASTOPEN
if (tfo)
{
int backlog = 5;
&backlog, sizeof(backlog)))
if (debug) printf("setsockopt TCP_FASTOPEN: %s\n", strerror(errno));
}
-
+#endif
/* If this is an IPv6 wildcard socket, set IPV6_V6ONLY if that option is
available. */
printf("IPv4 socket creation failed: %s\n", strerror(errno));
exit(1);
}
+#ifdef TCP_FASTOPEN
if (tfo)
{
int backlog = 5;
&backlog, sizeof(backlog)))
if (debug) printf("setsockopt TCP_FASTOPEN: %s\n", strerror(errno));
}
-
+#endif
}
}