Core/Network: Fixes Permission denied on linux (i hope)

This commit is contained in:
hondacrx
2018-03-12 14:57:14 -04:00
parent c00ac4b292
commit 517afda91e
+2 -3
View File
@@ -57,11 +57,10 @@ namespace Game.Network
try try
{ {
if (_socketSendBufferSize >= 0) if (_socketSendBufferSize >= 0)
sock.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.SendBuffer, _socketSendBufferSize); sock.SendBufferSize = _socketSendBufferSize;
// Set TCP_NODELAY. // Set TCP_NODELAY.
if (_tcpNoDelay) sock.NoDelay = _tcpNoDelay;
sock.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.NoDelay, true);
} }
catch (SocketException ex) catch (SocketException ex)
{ {