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