mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-04-18 06:10:06 +00:00
Increase the receive window size. Fix endianness issue with RTP sequence numbers. More bug fixes!
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
#include "PlatformSockets.h"
|
||||
#include "Limelight.h"
|
||||
|
||||
SOCKET bindUdpSocket(unsigned short port) {
|
||||
SOCKET s;
|
||||
struct sockaddr_in addr;
|
||||
int val;
|
||||
|
||||
s = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
|
||||
if (s == INVALID_SOCKET) {
|
||||
@@ -17,6 +19,9 @@ SOCKET bindUdpSocket(unsigned short port) {
|
||||
return INVALID_SOCKET;
|
||||
}
|
||||
|
||||
val = 65536;
|
||||
int err = setsockopt(s, SOL_SOCKET, SO_RCVBUF, (char*) &val, sizeof(val));
|
||||
|
||||
return s;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user