~ubuntu-branches/ubuntu/hardy/transmission/hardy-updates

« back to all changes in this revision

Viewing changes to third-party/libevent/evhttp.h

  • Committer: Bazaar Package Importer
  • Author(s): Philipp Benner
  • Date: 2007-12-05 14:37:05 UTC
  • mto: This revision was merged to the branch mainline in revision 9.
  • Revision ID: james.westby@ubuntu.com-20071205143705-env7ahsls1gyb2eo
Tags: upstream-0.95.dfsg
ImportĀ upstreamĀ versionĀ 0.95.dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
struct evhttp *evhttp_new(struct event_base *base);
74
74
 
75
75
/**
76
 
 * Start an HTTP server on the specified address and port.
 
76
 * Binds an HTTP server on the specified address and port.
77
77
 *
78
78
 * Can be called multiple times to bind the same http server
79
79
 * to multiple different ports.
80
80
 *
 
81
 * @param http a pointer to an evhttp object
81
82
 * @param address a string containing the IP address to listen(2) on
82
83
 * @param port the port number to listen on
83
84
 * @return a newly allocated evhttp struct
145
146
 
146
147
/**
147
148
 * Start an HTTP server on the specified address and port
 
149
 *
148
150
 * DEPRECATED: it does not allow an event base to be specified
149
151
 *
150
152
 * @param address the address to which the HTTP server should be bound
166
168
 * reasonable accessors.
167
169
 */
168
170
struct evhttp_request {
 
171
#if defined(TAILQ_ENTRY)
169
172
        TAILQ_ENTRY(evhttp_request) next;
 
173
#else
 
174
struct {
 
175
        struct evhttp_request *tqe_next;
 
176
        struct evhttp_request **tqe_prev;
 
177
}       next;
 
178
#endif
170
179
 
171
180
        /* the connection object that this request belongs to */
172
181
        struct evhttp_connection *evcon;