diff options
author | m0gg | 2006-12-01 10:55:59 +0000 |
---|---|---|
committer | m0gg | 2006-12-01 10:55:59 +0000 |
commit | 1e0e97fe7b654ecd7f5315d129df6e57f3e63371 (patch) | |
tree | dce178f3f876c04f4e5b1385f388c81fc1b6994c /nanohttp/nanohttp-socket.c | |
parent | 77ce98ff186515cce217814886d9d5b899380c7b (diff) | |
download | csoap-1e0e97fe7b654ecd7f5315d129df6e57f3e63371.tar.gz csoap-1e0e97fe7b654ecd7f5315d129df6e57f3e63371.tar.bz2 |
Fix nanoHTTP HTTPS client (still needs port in URL)
Diffstat (limited to 'nanohttp/nanohttp-socket.c')
-rw-r--r-- | nanohttp/nanohttp-socket.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/nanohttp/nanohttp-socket.c b/nanohttp/nanohttp-socket.c index 845bfbe..4980b0c 100644 --- a/nanohttp/nanohttp-socket.c +++ b/nanohttp/nanohttp-socket.c @@ -1,5 +1,5 @@ /****************************************************************** -* $Id: nanohttp-socket.c,v 1.67 2006/11/30 14:24:00 m0gg Exp $ +* $Id: nanohttp-socket.c,v 1.69 2006/12/01 10:56:00 m0gg Exp $ * * CSOAP Project: A http client/server library in C * Copyright (C) 2003 Ferhat Ayaz @@ -90,8 +90,8 @@ typedef int ssize_t; #endif #include "nanohttp-ssl.h" #endif -#include "nanohttp-request.h" -#include "nanohttp-server.h" + +#define HSOCKET_FREE -1 static int _hsocket_timeout = 10; @@ -446,13 +446,13 @@ hsocket_select_recv(int sock, char *buf, size_t len) } herror_t -hsocket_read(struct hsocket_t * sock, unsigned char * buffer, int total, int force, int *received) +hsocket_recv(struct hsocket_t * sock, unsigned char * buffer, int total, int force, int *received) { herror_t status; size_t totalRead; size_t count; -/* log_verbose3("Entering hsocket_read(total=%d,force=%d)", total, force); */ +/* log_verbose3("Entering hsocket_recv(total=%d,force=%d)", total, force); */ totalRead = 0; do @@ -466,7 +466,7 @@ hsocket_read(struct hsocket_t * sock, unsigned char * buffer, int total, int for } #else if ((count = hsocket_select_recv(sock->sock, buffer + totalRead, (size_t) total - totalRead)) == -1) - return herror_new("hsocket_read", HSOCKET_ERROR_RECEIVE, "recv failed (%s)", strerror(errno)); + return herror_new("hsocket_recv", HSOCKET_ERROR_RECEIVE, "recv failed (%s)", strerror(errno)); #endif sock->bytes_received += count; |