1
0
mirror of git://erdgeist.org/opentracker synced 2025-01-14 17:00:07 +00:00
opentracker/ot_http.h

31 lines
839 B
C
Raw Normal View History

2007-12-03 00:47:09 +00:00
/* This software was written by Dirk Engling <erdgeist@erdgeist.org>
2007-12-20 05:59:34 +00:00
It is considered beerware. Prost. Skol. Cheers or whatever.
2008-10-28 01:27:22 +00:00
2007-12-20 05:59:34 +00:00
$id$ */
2007-12-03 00:47:09 +00:00
#ifndef __OT_HTTP_H__
#define __OT_HTTP_H__
typedef enum {
STRUCT_HTTP_FLAG_ARRAY_USED = 1,
STRUCT_HTTP_FLAG_IOB_USED = 2,
STRUCT_HTTP_FLAG_WAITINGFORTASK = 4,
STRUCT_HTTP_FLAG_GZIP = 8,
STRUCT_HTTP_FLAG_BZIP2 = 16
} STRUCT_HTTP_FLAG;
struct http_data {
union {
array request;
io_batch batch;
2009-01-03 03:25:37 +00:00
} data;
2009-01-13 22:41:17 +00:00
ot_ip6 ip;
2007-12-03 00:47:09 +00:00
STRUCT_HTTP_FLAG flag;
};
ssize_t http_handle_request( const int64 s, struct ot_workstruct *ws );
ssize_t http_sendiovecdata( const int64 s, struct ot_workstruct *ws, int iovec_entries, struct iovec *iovector );
ssize_t http_issue_error( const int64 s, struct ot_workstruct *ws, int code );
2007-12-03 00:47:09 +00:00
2007-12-03 01:12:25 +00:00
#endif