diff options
author | Camil Staps | 2015-08-20 10:48:30 +0200 |
---|---|---|
committer | Camil Staps | 2015-08-20 10:55:53 +0200 |
commit | 792a1c8d8dc0cb576164da7cefaea4f43a95a1c2 (patch) | |
tree | f70167923f87c559c77f3ef6e05e7ca19034e5ca /Linux_C_12/cTCP_121.h | |
parent | To mimic the Windows library, WinGetTime now returns the local time rather th... (diff) |
Typedefs, comments, etc. Not compiling yet.tcp
Diffstat (limited to 'Linux_C_12/cTCP_121.h')
-rw-r--r-- | Linux_C_12/cTCP_121.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Linux_C_12/cTCP_121.h b/Linux_C_12/cTCP_121.h index 303eea6..ed116e7 100644 --- a/Linux_C_12/cTCP_121.h +++ b/Linux_C_12/cTCP_121.h @@ -1,9 +1,11 @@ #ifndef __CTCP__
#define __CTCP__
-#if defined(mingw32_TARGET_OS)
-#include <winsock.h>
+#include <netdb.h>
+typedef FILE* SOCKET;
+typedef FILE* HANDLE;
+typedef HANDLE HWND;
typedef int DNSHdl;
struct DNSInfo
@@ -50,10 +52,11 @@ typedef struct dictitem dictitem; #define DNSReceiver 3
#define ConnectReceiver 4
+#define SOCKET_ERROR -1
+
/* PA: InitSockets has no definition.
void InitSockets();
*/
extern dictitem* lookup(SOCKET endpointRef);
-#endif
#endif
|