diff options
| author | Alexander Amanuel <iavael@yandex-team.ru> | 2014-01-24 23:50:51 +0400 |
|---|---|---|
| committer | Alexander Amanuel <iavael@yandex-team.ru> | 2014-01-28 00:13:15 +0400 |
| commit | 924feb12b055422f632de7e80afc128378ff2999 (patch) | |
| tree | d2ee7974cc71237c5620e9480fd6e626fe77539a /src/SocketCore.cc | |
| parent | f2fa24b418f407bd94074b0988e3e5307e781bff (diff) | |
Added DSCP support
Diffstat (limited to 'src/SocketCore.cc')
| -rw-r--r-- | src/SocketCore.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/SocketCore.cc b/src/SocketCore.cc index 74ebdb5c..8022e2ff 100644 --- a/src/SocketCore.cc +++ b/src/SocketCore.cc @@ -532,6 +532,11 @@ void SocketCore::setTcpNodelay(bool f) setSockOpt(IPPROTO_TCP, TCP_NODELAY, &val, sizeof(val)); } +void SocketCore::setIpDscp(int32_t dscp) +{ + setSockOpt(IPPROTO_IP, IP_TOS, &dscp, sizeof(dscp)); +} + void SocketCore::setNonBlockingMode() { #ifdef __MINGW32__ |
