diff libnnchat.h @ 90:1e0bf7b4fd41

Move socket error handling functions to libnnchat.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 06 May 2009 23:55:21 +0300
parents c2d916b340bf
children acfc4b4bc180
line wrap: on
line diff
--- a/libnnchat.h	Wed May 06 05:05:02 2009 +0300
+++ b/libnnchat.h	Wed May 06 23:55:21 2009 +0300
@@ -40,6 +40,12 @@
 } nn_user_t;
 
 
+#ifdef __WIN32
+const char *hstrerror(int err);
+#endif
+int         getSocketErrno(void);
+const char *getSocketErrStr(int err);
+
 int         openConnection(struct in_addr *addr, const int port);
 void        closeConnection(const int sock);
 BOOL        sendToSocket(const int sock, char *buf, const size_t bufLen);