Increase the receive window size. Fix endianness issue with RTP sequence numbers. More bug fixes!

This commit is contained in:
Cameron Gutman
2014-01-19 01:41:27 -05:00
parent 979a439504
commit 44228d1296
4 changed files with 22 additions and 9 deletions

View File

@@ -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;
}