Nick Mathewson
2888faccd1
Revise the event/evbuffer/bufferevent doxygen for clarity and accuracy
2011-07-05 13:01:07 -04:00
Gilad Benjamini
3920172821
Make definition of WIN32_LEAN_AND_MEAN in event.h conditional.
...
(Inclusion order might trigger a warning for redefinition on Windows.)
2010-08-13 17:19:18 -04:00
Nick Mathewson
ec347b9225
Move event-config.h to include/event2
...
This change means that all required include files are in event2, and
all files not in event2/* are optional.
2010-08-06 20:21:27 -04:00
Nick Mathewson
17efc1cdfa
Update all our copyright notices to say "2010"
2010-03-04 01:38:48 -05:00
Nick Mathewson
e3fd294a6d
Spelling fixes in comments and strings.
...
svn:r1445
2009-10-16 13:19:57 +00:00
Nick Mathewson
5b5b880be7
Various MSVC cleanups from Brodie Thiesfield.
...
svn:r1385
2009-07-28 19:41:39 +00:00
Nick Mathewson
e8400a43ca
Rename encode_int(64) to avoid polluting the global namespace.
...
They're now called evtag_encode_int(64). The old names are available
as macros in event2/tag_compat.h.
Also, add unit tests for encode/decode_int64.
svn:r1365
2009-07-20 14:55:35 +00:00
Nick Mathewson
5d71b25b51
Remove all trailing whitespace from end-of-line.
...
svn:r1350
2009-07-17 18:38:38 +00:00
Niels Provos
f00f0c2533
make doxygen happier
...
svn:r1199
2009-04-18 04:34:45 +00:00
Nick Mathewson
ea4b8724c0
checkpoint work on big bufferevent refactoring
...
svn:r1095
2009-02-02 19:22:13 +00:00
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
ec2f4cbc09
Move obsolete evbuffer function into include/event2/buffer_compat.h
...
svn:r1043
2009-01-23 01:35:57 +00:00
Niels Provos
ef0221cc39
document chunked replies plus fix doxygen warnings
...
svn:r815
2008-05-13 03:42:47 +00:00
Nick Mathewson
0ac73078ed
r15193@tombo: nickm | 2008-04-16 16:00:35 -0400
...
Split event.h into several new headers in include/event2. event.h is now just a wrapper that includes all the subheaders.
svn:r711
2008-04-16 20:01:51 +00:00
Niels Provos
5c70ea4c9d
improved code for evbuffer; avoids memcpy
...
svn:r674
2008-02-28 02:47:43 +00:00
Niels Provos
67bf29ad72
simplify evbuffer by removing orig_buffer
...
svn:r654
2008-02-23 06:02:04 +00:00
Niels Provos
87bef9e974
update event_base_loop documentation; from Tani Hosokawa
...
svn:r652
2008-02-20 21:49:09 +00:00
Niels Provos
8ab618916f
event_base_get_method; from Springande Ulv
...
svn:r635
2008-02-16 06:09:39 +00:00
Niels Provos
03589ccb12
rollback r594: restructuring to make event activation independent.
...
changes are going to wait for api design
svn:r612
2007-12-24 22:49:30 +00:00
Niels Provos
d4bdbca847
add -Wstrict-aliasing and remove bogus evtag_test from event.h
...
svn:r602
2007-12-18 03:54:19 +00:00
Niels Provos
7aa845b73b
restructure the code to make event activation independent of regular event logic
...
svn:r594
2007-12-16 04:10:30 +00:00
Niels Provos
ba48719946
support for 32-bit tag numbers in rpc structures
...
svn:r583
2007-12-12 04:39:42 +00:00
Nick Mathewson
3206bbca46
r15171@tombo: nickm | 2007-12-06 12:47:47 -0500
...
Use GCC attributes (where available) to verify printf type-correctness. Fix some bugs this turned up.
svn:r573
2007-12-06 18:12:56 +00:00
Nick Mathewson
1120f04f3e
r16731@catbus: nickm | 2007-11-25 16:52:53 -0500
...
Replace all fds on non-unix-specific APIs with evutil_socket_t, which is int on unix and intptr_t on win32.
svn:r552
2007-11-25 21:53:06 +00:00
Nick Mathewson
6773a59721
r14953@tombo: nickm | 2007-11-25 15:56:40 -0500
...
Replace evbuffer_readline with a more powerful evbuffer_readln that can handle more EOL styles, and that can give useful results when there are NUL characters inside the returned values. Includes regression tests.
svn:r550
2007-11-25 21:32:26 +00:00
Nick Mathewson
7eb250e9c5
r14939@tombo: nickm | 2007-11-25 11:59:26 -0500
...
New function event_set_mem_functions to replace internal calls to malloc, free, etc with a user-supplied functions.
svn:r541
2007-11-25 17:14:19 +00:00
Niels Provos
88897852fc
provide event_reinit() to reinitialized an event_base after fork - necessary for epoll/kqueue
...
svn:r539
2007-11-25 06:57:59 +00:00
Nick Mathewson
1c23e21952
r14931@tombo: nickm | 2007-11-17 17:21:09 -0500
...
Patch from Scott Lamb: Implement event_{base_}loopbreak. Includes documentation and tests. From sf.net Feature Request 1826546.
svn:r535
2007-11-17 22:21:42 +00:00
Nick Mathewson
70248ca8ad
r14930@tombo: nickm | 2007-11-17 17:01:14 -0500
...
documentation fix on loopexit and elsewhere from Scott Lamb.
svn:r534
2007-11-17 22:21:33 +00:00
Niels Provos
af6f331a0b
use a const pointer for bufferevent_write
...
svn:r531
2007-11-17 01:32:30 +00:00
Niels Provos
f586f42885
provide event_base_new() as a mechanism for not setting the current_global
...
svn:r529
2007-11-14 17:52:21 +00:00
Nick Mathewson
4e1ec3e05e
Make all the C files in the libraries compile under MSVC 2005 Express. There are still a few warnings, and probably some subtle issues, but it's better than nothing.
...
svn:r499
2007-11-07 21:01:26 +00:00
Nick Mathewson
7feba57010
r16507@catbus: nickm | 2007-11-07 01:34:55 -0500
...
Never assign a string constant to a non-const char *.
svn:r495
2007-11-07 07:33:21 +00:00
Nick Mathewson
f74e7258fd
r16501@catbus: nickm | 2007-11-07 01:00:31 -0500
...
This is one of those patches which will either make matters far
simpler after the bugs shake out, or will get reverted pretty quick
once we realize that it is a stupid idea.
We now post-process the config.h file into a new event-config.h file,
whose macros are prefixed with _EVENT_ and which is thus safe for
headers to include. Using this, we can define replacement timeval
manipulation functions in evutil.h, and use them uniformly through our
code. We can also detect which headers are needful in event.h, and
include them as required.
This is also the perfect time to remove the long-deprecated acconfig.h
file, so that autoheader no longer warns.
Should resolve the following issues:
[ 1826530 ] Header files should have access to autoconf output.
[ 1826545 ] acconfig.h is deprecated.
[ 1826564 ] On some platforms, event.h can't be included alone.
svn:r492
2007-11-07 06:01:57 +00:00
Nick Mathewson
29420339dc
r16496@catbus: nickm | 2007-11-06 23:58:52 -0500
...
Clarify some doxygen in event.h
svn:r489
2007-11-07 05:02:14 +00:00
Niels Provos
a527151846
make event_init should return struct event_base *
...
svn:r481
2007-11-07 01:48:44 +00:00
Niels Provos
dc2317f921
improve doxygen documentation
...
svn:r473
2007-11-04 06:35:29 +00:00
Niels Provos
2026b21598
remove last vestiges of RBTREE
...
svn:r470
2007-11-03 23:53:49 +00:00
Niels Provos
30ae40cc52
switch timeouts to a min heap; from Maxim Yegorushkin
...
svn:r467
2007-11-03 18:04:53 +00:00
Nick Mathewson
d69a4c9ec4
r15097@catbus: nickm | 2007-09-18 11:08:42 -0400
...
Wrap all newly-added Doxygen comments to fit in a consistent 80 columns, and remove all their trailing whitespace.
svn:r437
2007-09-18 15:12:20 +00:00
Nick Mathewson
7135ffb6fc
r15096@catbus: nickm | 2007-09-18 11:02:12 -0400
...
Add Doxygen documentation to header files; patch from Mark Heily.
svn:r436
2007-09-18 15:12:09 +00:00
Niels Provos
3ad6b47e03
make clock_monotonic work; do not use default timeout;
...
from Scott Lamb, plus some fixes from me.
svn:r371
2007-07-30 22:41:00 +00:00
Niels Provos
b15d715cbc
make event_rpcgen.py use the uint_ types;
...
make event.h include stdint.h (wonder which OS that will break)
svn:r369
2007-07-06 03:36:31 +00:00
Niels Provos
753ffa563b
convert u_int8_t types to uint8_t types
...
svn:r368
2007-06-30 19:08:46 +00:00
Niels Provos
f0ff792afa
fixes from Joerg Sonnenberger:
...
http.c is a violation of the ctype(3) interface and an unused function.
test/regress_http.c are incorrect format strings.
test/regress.c uses raise(3) from signal.h.
evdns.c: evdns_error_strings is unused. The GET* macros can eat the
semicolon from the expression. pos is passed in as off_t, so just pass
that down. When assigning negativ values to unsigned variables, an
explicit cast is considered good style.
svn:r367
2007-06-30 18:58:34 +00:00
Niels Provos
41b7cbc381
more the signal base into the event base; this removes global state and makes signals
...
work better with threading; from Wouter Wijngaards
small fixes for kqueue and style by me
svn:r351
2007-03-10 06:37:53 +00:00
Niels Provos
b5d2f9a255
rolling back r339: evconfig.h does not work
...
svn:r341
2007-03-01 06:25:18 +00:00
Niels Provos
127c260bb7
make evconfig.h available as installed header file; not
...
really ideal but good enough for me; from Nick Mathewson
svn:r339
2007-02-28 04:02:29 +00:00
Niels Provos
f86cead099
remove artifical 16-bit restriction on evrpc entries
...
svn:r337
2007-02-24 08:33:07 +00:00
Niels Provos
58f42c79e7
fix handling of chunked requests
...
svn:r328
2007-02-14 16:59:47 +00:00