26 #ifndef MYSOCKET_INCLUDED 27 #define MYSOCKET_INCLUDED 36 #if defined(_MSC_VER) || defined(HAVE_SYS_MINGW) 38 #undef GetCurrentTime // defined by winbase.h, clashes with SystemClock::GetCurrentTime() 39 #include <sys/types.h> 40 #define ssize_t size_t 48 # if defined(_MSC_VER) || defined(HAVE_SYS_MINGW) 51 static int socketCount;
61 ssize_t
Read(std::string &a);
62 void Write(
const std::string &s);
void Write(const char *in)
void Write(const std::string &s)
ssize_t Read(std::string &a)
void OpenSocket(int port)