[Winpt-commits] r312 - trunk/Include
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Sun May 13 11:43:34 CEST 2007
Author: twoaday
Date: 2007-05-13 11:43:33 +0200 (Sun, 13 May 2007)
New Revision: 312
Modified:
trunk/Include/wptHTTP.h
Log:
Modified: trunk/Include/wptHTTP.h
===================================================================
--- trunk/Include/wptHTTP.h 2007-05-10 22:00:50 UTC (rev 311)
+++ trunk/Include/wptHTTP.h 2007-05-13 09:43:33 UTC (rev 312)
@@ -1,5 +1,5 @@
-/* wptHTTP.h - Generic HTTP code
- * Copyright (C) 2004, 2005, 2006 Timo Schulz
+/* wptHTTP.h - Generic network code for HTTP access
+ * Copyright (C) 2004, 2005, 2006, 2007 Timo Schulz
*
* This file is part of WinPT.
*
@@ -33,13 +33,12 @@
/* HTTP header list. */
struct http_head_s {
- struct http_head_s * next;
- int flags;
+ struct http_head_s *next;
char d[1];
};
typedef struct http_head_s *http_head_t;
-class wHTTP {
+class NetHTTP {
public:
/* HTTP methods. */
enum { HTTP_GET, HTTP_HEAD, HTTP_PUT, HTTP_POST };
@@ -72,10 +71,10 @@
int sendRequest (const char *host, int port, const char *url);
public:
- wHTTP ();
- wHTTP (const char *url);
- wHTTP (const char *host, int port, const char *url);
- ~wHTTP ();
+ NetHTTP ();
+ NetHTTP (const char *url);
+ NetHTTP (const char *host, int port, const char *url);
+ ~NetHTTP ();
void setVersion (int ver);
int getErrorCode (void);
@@ -86,6 +85,7 @@
int addRequestHeader (const char *name, const char *val);
int addRequestHeader (const char *name, unsigned int val);
+ int open (const char *url);
int write (const void *buf, unsigned int buflen);
int read (void *buf, unsigned int buflen);
int readData (FILE *out);
More information about the Winpt-commits
mailing list