Nick Mathewson
92cd548f80
r16544@catbus: nickm | 2007-11-07 16:12:37 -0500
...
Oops; forgot the log entry.
svn:r500
2007-11-07 21:14:04 +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
45c7ab25de
r16510@catbus: nickm | 2007-11-07 02:29:42 -0500
...
Try not to shadow local variables or function arguments.
svn:r498
2007-11-07 07:33:36 +00:00
Nick Mathewson
e72661d2ff
r16509@catbus: nickm | 2007-11-07 02:08:32 -0500
...
Stop using C++ style comments.
svn:r497
2007-11-07 07:33:31 +00:00
Nick Mathewson
1f50f41283
r16508@catbus: nickm | 2007-11-07 02:01:03 -0500
...
Note a dubious point in http.c
svn:r496
2007-11-07 07:33: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
a3f122d667
r16506@catbus: nickm | 2007-11-07 01:29:59 -0500
...
Make all rpc and http functions not prototyped in evrpc.h and evhttp.h into static functions. I believe that these functions were meant to be private, yes?
svn:r494
2007-11-07 07:33:16 +00:00
Nick Mathewson
794857242f
Remove spurious #include <sys/tree.h> in win32.c.
...
svn:r493
2007-11-07 06:07:54 +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
d0ce7d4ed7
r16500@catbus: nickm | 2007-11-07 00:27:44 -0500
...
Remove from the (deprecated) acconfig.h file stubs that are already generated by autoheader.
svn:r491
2007-11-07 06:01:45 +00:00
Nick Mathewson
206d433638
r16497@catbus: nickm | 2007-11-07 00:01:02 -0500
...
Resolve issue 1826588: make event_base_free() succeed even if there are pending non-INTERNAL events still in the base. This can leak memory and fds if used injudiciously, but at least it no longer crashes.
svn:r490
2007-11-07 05:02:21 +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
Nick Mathewson
bab0e6d440
r16492@catbus: nickm | 2007-11-06 23:27:32 -0500
...
Fix unit tests so that an outdated nameserver means "Skip IPv6 tests", not "Abort."
svn:r487
2007-11-07 04:28:54 +00:00
Nick Mathewson
7c507668d7
r16489@catbus: nickm | 2007-11-06 22:51:05 -0500
...
Do not use "class" as identifier in evdns.h; but use a backward-compatible fix. (Should fix bug 1826515, originally reported by Roger Clark)
svn:r486
2007-11-07 03:52:20 +00:00
Nick Mathewson
e9564eceb3
r16487@catbus: nickm | 2007-11-06 22:38:44 -0500
...
Remove rtsig method, as discussed in July. It hasn't compiled for quite a while, and nobody has seemed to miss it much. Please let us know if this was a bad call. [Tracker issue 1826539].
svn:r485
2007-11-07 03:40:26 +00:00
Niels Provos
4555f75509
remove tree.h from EXTRA_DIST; from Charles Kerr
...
svn:r484
2007-11-07 03:25:03 +00:00
Nick Mathewson
3c1bbca672
r14744@tombo: nickm | 2007-11-06 21:30:11 -0500
...
Fix coding error: patch from Charles Kerr.
svn:r483
2007-11-07 02:30:17 +00:00
Niels Provos
a527151846
make event_init should return struct event_base *
...
svn:r481
2007-11-07 01:48:44 +00:00
Nick Mathewson
81802bf98c
r16473@catbus: nickm | 2007-11-06 15:55:35 -0500
...
Increment MAX_ADDRS in evdns so as to be quite large. This is not as good as a general solution, but it may be good enough for practical use.
svn:r479
2007-11-06 20:57:37 +00:00
Nick Mathewson
d257a4c0d6
r16454@catbus: nickm | 2007-11-06 09:59:45 -0500
...
Small code cleanups in epoll_dispatch(): remove a needless variable and some redundant conditionals.
svn:r478
2007-11-06 20:57:32 +00:00
Nick Mathewson
d7d91461c8
r14732@tombo: nickm | 2007-11-05 22:03:28 -0500
...
Quick hack to make evhttp.h build when there is no TAILQ to be found. Based on patch from Paul Fisher. We could perhaps do this more elegantly, but it _does_ need to be done.
svn:r475
2007-11-06 03:04:49 +00:00
Niels Provos
dc2317f921
improve doxygen documentation
...
svn:r473
2007-11-04 06:35:29 +00:00
Nick Mathewson
1bcb112b20
r14698@tombo: nickm | 2007-11-03 22:20:23 -0400
...
Use libtool versioning correctly. Add comment to Makefile.am explaining how to keep this working.
svn:r472
2007-11-04 02:21:31 +00:00
Niels Provos
22bd8b0094
remove last vestiges of RBTREE
...
svn:r471
2007-11-03 23:54:27 +00:00
Niels Provos
2026b21598
remove last vestiges of RBTREE
...
svn:r470
2007-11-03 23:53:49 +00:00
Niels Provos
881731028b
split libevent into two extra libraries libevent_core and libevent_extra
...
svn:r469
2007-11-03 23:45:38 +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
30ae40cc52
switch timeouts to a min heap; from Maxim Yegorushkin
...
svn:r467
2007-11-03 18:04:53 +00:00
Niels Provos
65236aa857
simple hooks for processing incoming and outgoing rpcs
...
svn:r466
2007-11-02 06:34:04 +00:00
Niels Provos
18ac92486f
Solaris event port improvements
...
svn:r464
2007-10-27 17:50:07 +00:00
Nick Mathewson
ccdc59905b
r15922@catbus: nickm | 2007-10-18 13:48:46 -0400
...
Patch to event.3 from Christopher Lane.
svn:r463
2007-10-18 17:49:52 +00:00
Nick Mathewson
c91794e25d
Instead of read/write in regress.c, use send/recv. Now all of the win32 regression tests pass, except for http and rpc.
...
svn:r461
2007-10-12 18:02:56 +00:00
Nick Mathewson
e1f09dfe5c
Fix evutil code to use correct EVUTIL_SET_SOCKET_ERROR macro.
...
svn:r460
2007-10-12 17:55:37 +00:00
Nick Mathewson
49ede3be00
r15517@catbus: nickm | 2007-10-03 13:14:05 -0400
...
Correct the pointer manipulation in fake_getaddrinfo(), and do the right thing for fake_getaddrinfo(NULL,&ai). Based on a patch by Lubmir Marinov, hacked until the unit tests passed on Linux with #undef HAVE_GETADDRINFO.
svn:r459
2007-10-03 17:19:22 +00:00
Nick Mathewson
bc7b7c249c
Fix implementation of strsep.
...
svn:r457
2007-10-03 04:14:54 +00:00
Nick Mathewson
4ed4867375
r15496@catbus: nickm | 2007-10-02 15:06:22 -0400
...
Move end of "extern C {" block to the end of evdns.h.
svn:r456
2007-10-02 19:11:41 +00:00
Nick Mathewson
3550be9387
r15331@catbus: nickm | 2007-09-25 11:46:52 -0400
...
Add EVPORT to test.sh script. Patch from Trond Norbye.
svn:r454
2007-09-25 15:50:50 +00:00
Nick Mathewson
fe4829776b
r15324@catbus: nickm | 2007-09-24 12:22:21 -0400
...
New evutil.h macros to manipulate winsock errors. Use them in http.c and in evutil_socketpair().
svn:r451
2007-09-24 16:26:11 +00:00
Niels Provos
3c1a6a68d2
first attempts at refactoring this code to make it more readable;
...
mostly changing to dictionaries for format strings
svn:r450
2007-09-23 03:49:28 +00:00
Niels Provos
a4cc3d148a
rename the rpc member from kill to attack; that way the
...
structure does not have the same name. might find some
bugs.
svn:r449
2007-09-22 23:57:11 +00:00
Nick Mathewson
db43c1e111
On win32, sockets apparently can't be used with ReadFile and WriteFile: You need send() and recv() instead. Also, you need to use ioctlsocket() with sockets, not ioctl. [Fixes evbuffer regression tests.]
...
svn:r448
2007-09-20 19:36:03 +00:00
Nick Mathewson
1e1f77c5b0
Make the test/ subdirectory buildable under Windows. Well, mingw at least. The tests still don't all pass, but at least now we know that.
...
svn:r447
2007-09-20 19:08:20 +00:00
Nick Mathewson
d85bce4e96
Remove gratuitous tor-isms in evutil_socketpair(); fix a windows warning in http.c.
...
svn:r446
2007-09-20 18:38:31 +00:00
Nick Mathewson
f4c84e8628
r15220@catbus: nickm | 2007-09-20 14:22:57 -0400
...
Another patch from Trond: Skip calling gettime() in timeout_process if we have no events in the timetree.
svn:r445
2007-09-20 18:27:01 +00:00
Nick Mathewson
5a0d671f0e
r15219@catbus: nickm | 2007-09-20 14:17:32 -0400
...
Apply patch from Trond Norbye with recommendations from Magne Mahre and Hannah Schroeter: make autogen.sh work on systems where /bin/sh is not bash.
svn:r444
2007-09-20 18:26:56 +00:00
Nick Mathewson
8b256b8e86
r15218@catbus: nickm | 2007-09-20 14:14:05 -0400
...
More win32 fixes: Use evutil_make_socket_nonblocking and EVUTIL_CLOSESOCKET consistently throughout the code.
svn:r443
2007-09-20 18:26:51 +00:00
Nick Mathewson
f0e06d75e5
r15217@catbus: nickm | 2007-09-20 14:04:32 -0400
...
Fix win32 signals: teach win32 that we have per-base signal queues; teach signal.c that not everybody has sigaction().
svn:r442
2007-09-20 18:26:46 +00:00
Nick Mathewson
250071830a
r15216@catbus: nickm | 2007-09-20 13:58:23 -0400
...
Add a new evutil module to contain the usual cross-platform hacks: socketpair, closesocket, and make_socket_nonblocking()
svn:r441
2007-09-20 18:26:40 +00:00
Nick Mathewson
626cc5f982
r15168@catbus: nickm | 2007-09-19 11:24:30 -0400
...
Add a new function to evdns to override the default transaction ID generation code.
svn:r440
2007-09-19 15:27:53 +00:00
Nick Mathewson
7f57289f99
r15103@catbus: nickm | 2007-09-18 11:13:09 -0400
...
Use a dummy target to ensure that doxygen gets rebuilt every time we "make doxygen".
svn:r439
2007-09-18 15:16:23 +00:00