9.10.2011 - stable backup commit

This commit is contained in:
peri4
2011-10-09 22:23:52 +04:00
parent 29190ea465
commit 39ec9cac5c
39 changed files with 1170 additions and 512 deletions

View File

@@ -4,12 +4,17 @@
#include "pithread.h"
#include "pistring.h"
#ifndef WINDOWS
# include <netinet/in.h>
# include <arpa/inet.h>
# include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#else
# include <winsock2.h>
# define SHUT_RDWR SD_BOTH
# ifdef CC_VC
#include <winsock.h>
# define SHUT_RDWR 2
# else
#include <winsock2.h>
# define SHUT_RDWR SD_BOTH
# endif
#endif
#define BUFFER_SIZE 4096