26 #define _WIN32_WINNT 0x0501
30 #include <arpa/inet.h>
77 bool Open(
bool asserver);
86 bool Async(
bool block);
96 bool Bind(
const std::string &ip,
const std::string& port);
116 bool Connect(
const std::string& ip,
const std::string& port);
122 ssize_t
Send(
const std::string& message);
128 ssize_t
Recv(std::string* message);
136 static bool InitializeWSA(
void);
189 static bool _wsaInitialized;