mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-30 14:18:44 +00:00
always enable QoS
This commit is contained in:
parent
246ba8397e
commit
f52c49f55f
1 changed files with 9 additions and 12 deletions
|
@ -651,22 +651,19 @@ void SlippiNetplayClient::ThreadFunc()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
if (SConfig::GetInstance().bQoSEnabled)
|
for (int i = 0; i < m_server.size(); i++)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < m_server.size(); i++)
|
|
||||||
{
|
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
// highest priority
|
// highest priority
|
||||||
int priority = 7;
|
int priority = 7;
|
||||||
setsockopt(m_server[i]->host->socket, SOL_SOCKET, SO_PRIORITY, &priority, sizeof(priority));
|
setsockopt(m_server[i]->host->socket, SOL_SOCKET, SO_PRIORITY, &priority, sizeof(priority));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// https://www.tucny.com/Home/dscp-tos
|
// https://www.tucny.com/Home/dscp-tos
|
||||||
// ef is better than cs7
|
// ef is better than cs7
|
||||||
int tos_val = 0xb8;
|
int tos_val = 0xb8;
|
||||||
qos_success =
|
qos_success =
|
||||||
setsockopt(m_server[i]->host->socket, IPPROTO_IP, IP_TOS, &tos_val, sizeof(tos_val)) == 0;
|
setsockopt(m_server[i]->host->socket, IPPROTO_IP, IP_TOS, &tos_val, sizeof(tos_val)) == 0;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue