19 Commits

Author SHA1 Message Date
Niels Provos
af6f331a0b use a const pointer for bufferevent_write
svn:r531
2007-11-17 01:32:30 +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
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
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
9f7d28bb81 make it compile with mingw; from Nick
svn:r235
2006-09-27 03:07:38 +00:00
Niels Provos
c1eec7aae5 allow both read and write callbacks for bufferevents to be NULL
svn:r227
2006-08-26 04:32:31 +00:00
Niels Provos
7b78c82823 limit the amount of data bufferevents are going to consume to something
reasonable; in some circumstances it could happen that libevent happily
allocated 100MB in read buffers without telling the user; found by
christopher maxwell - parts of these changes are from his patch.


svn:r200
2006-02-13 01:51:58 +00:00
Niels Provos
f296e6336a allow setting an event base for bufferevents; from phil oleson
svn:r199
2006-02-03 19:26:06 +00:00
Niels Provos
50f7aaef6b make it compile on mac os x
svn:r183
2005-09-09 06:56:12 +00:00
Niels Provos
0cce9a01d7 better comment
svn:r152
2005-04-23 02:48:27 +00:00
Niels Provos
5e2ba12a89 fixes from alexander von gernler
svn:r148
2005-04-14 23:28:06 +00:00
Niels Provos
bc9b24876b make it compile on solaris
svn:r142
2005-04-04 00:10:17 +00:00
Niels Provos
3ba224dbd5 fixes for threaded operations from Andrew Danforth
svn:r129
2005-01-03 18:58:40 +00:00
Niels Provos
fa6c304d9e support for event priorities; active events are scheduled into priority queues;
lower priorities get always processed before higher priorities


svn:r120
2004-09-19 21:08:09 +00:00
Niels Provos
849d524912 license
svn:r104
2004-04-13 06:22:48 +00:00
Niels Provos
fbf01c7f04 support for low and high watermarks
svn:r101
2004-04-04 02:20:21 +00:00
Niels Provos
246d8583c0 allow the write callback to called even if there is no buffered data
svn:r96
2004-03-23 04:05:37 +00:00
Niels Provos
5908bd7213 provided buffered events
svn:r95
2004-03-23 03:43:53 +00:00