25 Commits

Author SHA1 Message Date
Nick Mathewson
b85b710cf5 Update copyright statements to reflect the facts that:
a) this is 2009
b) niels and nick have been comaintainers for a while
c) saying "all rights reserved" when you then go on to explicitly
   disclaim some rights is sheer cargo-cultism.

svn:r1065
2009-01-27 22:34:36 +00:00
Nick Mathewson
2baaac7fdb Forward-port: Rename INPUT and OUTPUT to EVRPC_INPUT and EVRPC_OUTPUT, but keep the INPUT/OUTPUT aliases on non-win32 platforms to maintain backwards compatibility.
svn:r852
2008-06-14 17:50:36 +00:00
Niels Provos
aa4b92574b move some structure definitions from evrpc.h to evrpc-internal.h
svn:r817
2008-05-13 05:05:30 +00:00
Nick Mathewson
7defe4cbc1 r15549@tombo: nickm | 2008-05-08 11:53:11 -0400
Make new http headers include minimal parts of event2/ tree; make old evhttp.h incldue event.h, since the old one did too.


svn:r798
2008-05-08 15:55:09 +00:00
Niels Provos
e8f450f232 expose a way to create the rpc context manually
svn:r754
2008-05-01 02:08:26 +00:00
Niels Provos
85c4904bc5 allow connections to be removed from an rpc pool
svn:r753
2008-05-01 01:45:00 +00:00
Niels Provos
2460aa5939 allow hooks to get access to the connection object
svn:r623
2007-12-31 19:33:30 +00:00
Niels Provos
5a5609c753 allow association of meta data with RPC requests for hook processing
svn:r622
2007-12-29 22:45:54 +00:00
Niels Provos
819d4a33d7 allow hooks to pause RPC processing; this will allow hooks to do meaningful work before resuming the
RPC processing; this is not backwards compatible.


svn:r617
2007-12-27 23:17:24 +00:00
Niels Provos
dc2317f921 improve doxygen documentation
svn:r473
2007-11-04 06:35:29 +00:00
Niels Provos
1d3a008af3 provide hooks for outgoing pools; associate a base with a pool
svn:r468
2007-11-03 22:51:26 +00:00
Niels Provos
65236aa857 simple hooks for processing incoming and outgoing rpcs
svn:r466
2007-11-02 06:34:04 +00:00
Nick Mathewson
35983cd60f r14618@catbus: nickm | 2007-08-16 17:11:47 -0400
In ANSI C, int func() is a function with unspecified arguments, whereas int func(void) is a function that takes no arguments.  Using int func() to mean a function with no arguments is a C++ism, so let's not use or generate it.


svn:r395
2007-08-16 21:12:53 +00:00
Niels Provos
3794534feb change the signature of the client rpc callback to pass in an rpc status; the status
allows us to determine if an error happened.


svn:r363
2007-05-29 05:38:58 +00:00
Niels Provos
621a1b2947 support freeing of evrpc base
svn:r356
2007-05-23 05:31:33 +00:00
Niels Provos
0c2808246a support removing of http callbacks and removing of registered RPCs
svn:r355
2007-05-23 05:20:59 +00:00
Niels Provos
50edb19f17 EVRPC_MAKE_REQUEST needs the pool argument
svn:r349
2007-03-05 07:28:15 +00:00
Niels Provos
729487deb3 better conversion; cannot use event_err here.
svn:r344
2007-03-03 08:27:52 +00:00
Niels Provos
660662517c proper casting for conversion
svn:r343
2007-03-03 08:18:20 +00:00
Niels Provos
74f7118d66 install evrpc.h header
svn:r342
2007-03-03 08:16:40 +00:00
Niels Provos
2d028ef6c1 fix a bug where rpc would not be scheduled when they were queued; test for it.
allow a configurable timeout for connections and RPCs.


svn:r274
2006-11-22 06:54:28 +00:00
Niels Provos
4aa780d6ad don't require string literal for message name
svn:r270
2006-11-20 07:57:36 +00:00
Niels Provos
fda1216b6e generate client request code via macro; flesh out the pools a little bit.
svn:r268
2006-11-20 03:32:53 +00:00
Niels Provos
c4836d1053 make sure that the rpc callback receives an unmarshaled payload;
make sure that the rpc reply contains a good rpc structure, too.


svn:r258
2006-11-17 06:06:17 +00:00
Niels Provos
f554234f74 first stab at an rpc layer; this breaks the regression test.
svn:r254
2006-11-16 07:36:20 +00:00