Enable SO_NO_CHECK if available to skip UDP checksum on packet send for slight performance improvement. We do our own cryptographically secure authentication so UDP checksum is worthless.
This commit is contained in:
parent
1537109514
commit
40d5c79b62
5 changed files with 14 additions and 6 deletions
|
@ -696,7 +696,7 @@ static int testPhy()
|
|||
|
||||
std::cout << "[phy] Creating phy endpoint..." << std::endl;
|
||||
TestPhyHandlers testPhyHandlers;
|
||||
testPhyInstance = new Phy<TestPhyHandlers *>(&testPhyHandlers,false);
|
||||
testPhyInstance = new Phy<TestPhyHandlers *>(&testPhyHandlers,false,true);
|
||||
|
||||
std::cout << "[phy] Binding UDP listen socket to 127.0.0.1/60002... ";
|
||||
PhySocket *udpListenSock = testPhyInstance->udpBind((const struct sockaddr *)&bindaddr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue