summaryrefslogtreecommitdiffstats
path: root/nanohttp/nanohttp-socket.h
diff options
context:
space:
mode:
authorGravatar rans2004-08-26 17:07:47 +0000
committerGravatar rans2004-08-26 17:07:47 +0000
commit8fa610c18388161569d68034243af9c923dbbee9 (patch)
tree7a6734c77bed901fe21a0b1b4b5dc848a3b153af /nanohttp/nanohttp-socket.h
parent3ad9ad0547145e25657660e3c1c92ffb6905d3dc (diff)
downloadcsoap-8fa610c18388161569d68034243af9c923dbbee9.tar.gz
csoap-8fa610c18388161569d68034243af9c923dbbee9.tar.bz2
http stuff
Diffstat (limited to 'nanohttp/nanohttp-socket.h')
-rw-r--r--nanohttp/nanohttp-socket.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/nanohttp/nanohttp-socket.h b/nanohttp/nanohttp-socket.h
index 12dc5d9..f86b149 100644
--- a/nanohttp/nanohttp-socket.h
+++ b/nanohttp/nanohttp-socket.h
@@ -1,5 +1,5 @@
/******************************************************************
- * $Id: nanohttp-socket.h,v 1.5 2004/01/21 12:28:20 snowdrop Exp $
+ * $Id: nanohttp-socket.h,v 1.6 2004/08/26 17:07:47 rans Exp $
*
* CSOAP Project: A http client/server library in C
* Copyright (C) 2003 Ferhat Ayaz
@@ -24,7 +24,7 @@
#ifndef NANO_HTTP_SOCKET_H
#define NANO_HTTP_SOCKET_H
-
+#define HSOCKET_BLOCKMODE 0
#define HSOCKET_OK 0
#define HSOCKET_CAN_NOT_CREATE 1001
#define HSOCKET_CAN_NOT_GET_HOSTNAME 1002
@@ -37,8 +37,12 @@
#define HSOCKET_MAX_BUFSIZE 1024
+#ifdef WIN32
+#include <winsock2.h>
+typedef SOCKET hsocket_t;
+#else
typedef int hsocket_t;
-
+#endif
/*
PROTOTYPE:
int my_recv_cb(hsocket_t sock, char *buffer, int size, void *userdata);