1183 shaares
298 private links
298 private links
Encore un autre article qui m'intéresse bien, j'irai m'y approfondir (j'ai l'impression de n'avoir rien appris à l'école …)
int setsockopt(int sockfd, int level, int optname,
const void *optval, socklen_t optlen);
v6only = false;
setsockopt(fd, IPPROTO_IPV6, IPV6_V6ONLY, (v6only ? &true_opt : &false_opt), sizeof(int));