replace pxl8.sh with Makefile, port client and server to Windows
This commit is contained in:
parent
8d491612ab
commit
8f9317f751
9 changed files with 725 additions and 878 deletions
|
|
@ -21,6 +21,7 @@
|
|||
#include <winsock2.h>
|
||||
#include <ws2tcpip.h>
|
||||
typedef SOCKET socket_t;
|
||||
typedef int ssize_t;
|
||||
#define INVALID_SOCK INVALID_SOCKET
|
||||
#define close_socket closesocket
|
||||
#else
|
||||
|
|
@ -108,7 +109,7 @@ pxl8_result pxl8_net_connect(pxl8_net* net) {
|
|||
#endif
|
||||
|
||||
int rcvbuf = 1024 * 1024;
|
||||
setsockopt(net->sock, SOL_SOCKET, SO_RCVBUF, &rcvbuf, sizeof(rcvbuf));
|
||||
setsockopt(net->sock, SOL_SOCKET, SO_RCVBUF, (const char*)&rcvbuf, sizeof(rcvbuf));
|
||||
|
||||
memset(&net->server_addr, 0, sizeof(net->server_addr));
|
||||
#ifdef __APPLE__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue