//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");
- }
-#else
- optval = 6;
- if(setsockopt(data_socket, SOL_SOCKET, SO_PRIORITY, &optval, sizeof(optval))<0) {
- perror("data_socket: SO_PRIORITY");
+ perror("data_socket: IP_TOS");
}
#endif
//optval = 0x10; // IPTOS_LOWDELAY
optval = 0xb8; // DSCP EF
if(setsockopt(tmp, IPPROTO_IP, IP_TOS, &optval, sizeof(optval))<0) {
- perror("data_socket: SO_PRIORITY");
- }
-#else
- optval = 6;
- if(setsockopt(tmp, SOL_SOCKET, SO_PRIORITY, &optval, sizeof(optval))<0) {
- perror("data_socket: SO_PRIORITY");
+ perror("data_socket: IP_TOS");
}
#endif
//optval = 0x10; // IPTOS_LOWDELAY
optval = 0xb8; // DSCP EF
if(setsockopt(tmp, IPPROTO_IP, IP_TOS, &optval, sizeof(optval))<0) {
- perror("data_socket: SO_PRIORITY");
- }
-#else
- optval = 6;
- if(setsockopt(tmp, SOL_SOCKET, SO_PRIORITY, &optval, sizeof(optval))<0) {
- perror("data_socket: SO_PRIORITY");
+ perror("data_socket: IP_TOS");
}
#endif
tcp_socket=tmp;