setsockopt(data_socket, SOL_SOCKET, SO_REUSEADDR, &optval, sizeof(optval));
setsockopt(data_socket, SOL_SOCKET, SO_REUSEPORT, &optval, sizeof(optval));
#ifdef __APPLE__
- optval = 0x10; // IPTOS_LOWDELAY
+ //optval = 0x10; // IPTOS_LOWDELAY
+ optval = 0xb8; // DSCP EF
if(setsockopt(data_socket, IPPROTO_IP, IP_TOS, &optval, sizeof(optval))<0) {
perror("data_socket: SO_PRIORITY");
}
perror("data_socket: SO_RCVBUF");
}
#ifdef __APPLE__
- optval = 0x10; // IPTOS_LOWDELAY
+ //optval = 0x10; // IPTOS_LOWDELAY
+ optval = 0xb8; // DSCP EF
if(setsockopt(tmp, IPPROTO_IP, IP_TOS, &optval, sizeof(optval))<0) {
perror("data_socket: SO_PRIORITY");
}
perror("tcp_socket: SO_RCVBUF");
}
#ifdef __APPLE__
- optval = 0x10; // IPTOS_LOWDELAY
+ //optval = 0x10; // IPTOS_LOWDELAY
+ optval = 0xb8; // DSCP EF
if(setsockopt(tmp, IPPROTO_IP, IP_TOS, &optval, sizeof(optval))<0) {
perror("data_socket: SO_PRIORITY");
}