Dolda2000 GitWeb
/
doldaconnect.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added an lsdl command and left-justified columns in lsnodes output.
[doldaconnect.git]
/
include
/
http.h
diff --git
a/include/http.h
b/include/http.h
index
e6d1020
..
ca7d42f
100644
(file)
--- a/
include/http.h
+++ b/
include/http.h
@@
-1,6
+1,6
@@
/*
* Dolda Connect - Modular multiuser Direct Connect-style client
/*
* Dolda Connect - Modular multiuser Direct Connect-style client
- * Copyright (C) 2007 Fredrik Tolf
(fredrik@dolda2000.com)
+ * Copyright (C) 2007 Fredrik Tolf
<fredrik@dolda2000.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@
-22,21
+22,29
@@
#include <netdb.h>
#include <netdb.h>
+#include "utils.h"
+
struct hturlinfo {
char *host;
int port;
char *path;
char *query;
struct hturlinfo {
char *host;
int port;
char *path;
char *query;
+ char *fragment;
};
struct htconn {
int state;
int fd;
struct addrinfo *ailist, *curai;
};
struct htconn {
int state;
int fd;
struct addrinfo *ailist, *curai;
- char *outbuf, *inbuf;
+ char *outbuf, *inbuf
, *databuf
;
size_t outbufsize, outbufdata;
size_t inbufsize, inbufdata;
size_t outbufsize, outbufdata;
size_t inbufsize, inbufdata;
+ size_t databufsize, databufdata;
struct hturlinfo *url;
struct hturlinfo *url;
+ int rescode;
+ char *resstr;
+ struct strpair *headers;
+ ssize_t tlen, rxd, chl;
};
struct htcookie {
};
struct htcookie {
@@
-46,7
+54,9
@@
struct htcookie {
struct hturlinfo *parseurl(char *url);
void freeurl(struct hturlinfo *ui);
struct hturlinfo *parseurl(char *url);
void freeurl(struct hturlinfo *ui);
+void freehtconn(struct htconn *cn);
struct htconn *htconnect(struct hturlinfo *ui);
int htpollflags(struct htconn *hc);
struct htconn *htconnect(struct hturlinfo *ui);
int htpollflags(struct htconn *hc);
+int htprocess(struct htconn *hc, int pollflags);
#endif
#endif