- // wrapper functions
- int readsocket( int fd, void *buf, size_t count );
- int writesocket( int fd, const void *buf, size_t count );
-#if !defined(_MSC_VER) && !defined(__MINGW32__)
- int closesocket(int fd);
-#endif
-
-#if defined(_MSC_VER) || defined(__MINGW32__)
- // Ensure winsock has been initialised.
- static bool wsock_init;
- static bool wsastartup();
-#endif