Mercurial > hg > nnchat
diff libnnchat.h @ 91:acfc4b4bc180
Create network initialization functions in libnnchat and move Win32/WinSock code there.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 07 May 2009 00:04:37 +0300 |
parents | 1e0bf7b4fd41 |
children | 6e47426efb6a |
line wrap: on
line diff
--- a/libnnchat.h Wed May 06 23:55:21 2009 +0300 +++ b/libnnchat.h Thu May 07 00:04:37 2009 +0300 @@ -45,6 +45,8 @@ #endif int getSocketErrno(void); const char *getSocketErrStr(int err); +BOOL initNetwork(void); +void closeNetwork(void); int openConnection(struct in_addr *addr, const int port); void closeConnection(const int sock);