// $Id: Socket.hh 4754 2005-10-17 18:16:33Z m9710797 $ #ifndef SOCKET_HH #define SOCKET_HH #include #include #ifndef _WIN32 #include #include #include #include #include #include #else #include #endif namespace openmsx { #ifndef _WIN32 static const int INVALID_SOCKET = -1; static const int SOCKET_ERROR = -1; typedef int SOCKET; #endif std::string sock_error(); void sock_startup(); void sock_cleanup(); void sock_reuseAddr(int sd); void sock_close(int sd); int sock_recv(int sd, char* buf, size_t count); int sock_send(int sd, const char* buf, size_t count); } // namespace openmsx #endif