Home | History | Annotate | Download | only in libevent

Lines Matching refs:request

41  * EVRPC_HEADER(SendCommand, Request, Reply);
44 * Request is the name of a structure generated by event_rpcgen.py.
57 * EVRPC_REGISTER(base, SendCommand, Request, Reply, FunctionCB, arg);
73 /* Encapsulates a request */
77 /* the URI at which the request handler lives */
80 /* creates a new request structure */
83 /* frees the request structure */
86 /* unmarshals the buffer into the proper request structure */
120 /* the unmarshaled request object */
121 void *request;
133 * the http request structure on which we need to answer.
150 * @param reqstruct the name of the RPC request structure
156 struct reqstruct* request; \
161 struct evrpc* rpc, void *request, void *reply); \
175 * @param reqstruct the name of the RPC request structure
181 struct reqstruct *request, struct rplystruct *reply, \
201 ctx->request = (void *)request; \
210 (*(cb))(&status, request, reply, cbarg); \
214 /** Provides access to the HTTP request object underlying an RPC
219 * @param rpc_req the rpc request structure provided to the server callback
225 /** Creates the reply to an RPC request
227 * EVRPC_REQUEST_DONE is used to answer a request; the reply is expected
228 * to have been filled in. The request and reply pointers become invalid
231 * @param rpc_req the rpc request structure provided to the server callback
239 /* Takes a request object and fills it in with the right magic */
240 #define EVRPC_REGISTER_OBJECT(rpc, name, request, reply) \
247 (rpc)->request_new = (void *(*)(void))request##_new; \
248 (rpc)->request_free = (void (*)(void *))request##_free; \
249 (rpc)->request_unmarshal = (int (*)(void *, struct evbuffer *))request##_unmarshal; \
287 * @param request the name of the RPC request structure
295 #define EVRPC_REGISTER(base, name, request, reply, callback, cbarg) \
298 EVRPC_REGISTER_OBJECT(rpc, name, request, reply); \
326 * provides information about the completed RPC request.
343 /* pool on which this rpc request is being made */
346 /* connection on which the request is being sent */
349 /* event for implementing request timeouts */
356 void (*cb)(struct evrpc_status*, void *request, void *reply, void *arg);
359 void *request;
362 /* unmarshals the buffer into the proper request structure */
378 * the request should be sent.
379 * @param request a pointer to the RPC request structure - it contains the
382 * if the request was answered successfully
383 * @param cb the callback to invoke when the RPC request has been answered
387 #define EVRPC_MAKE_REQUEST(name, pool, request, reply, cb, cbarg) \
388 evrpc_send_request_##name(pool, request, reply, cb, cbarg)
417 * Sets the timeout in secs after which a request has to complete. The
428 * @param timeout_in_secs the number of seconds after which a request should