WIN32-Code


Log

Author Commit Date CI Message
Nick Mathewson 2e36dbe1 2009-10-26T20:00:43 Use EVUTIL_ASSERT() consistently instead of assert. svn:r1464
Nick Mathewson d8164d0c 2009-10-21T07:00:14 Fix win32 connect() event handling. Christopher Davis reported: Connection failures aren't reported on Windows when using bufferevent_socket_connect, because Windows uses select's exceptfds to notify of failure, and libevent treats them like read events. Only the write event handler is currently used to handle connection events. We should think hard about this one, since it changes behavior from 1.4.x. Anything that worked on Mac/Unix before will work more consistently on Windows now... but this might break stuff that worked only on Windows, but nowhere else. Patch from Chris Davis. svn:r1454
Nick Mathewson ed748a48 2009-10-21T04:45:59 Fix win32 compilation. svn:r1451
Nick Mathewson 6b22e74a 2009-10-21T03:54:00 Add locking to event_base_loop. This is harder than it sounds, since we need to make sure to release the lock around the key call to the kernel (e.g., select, epoll_wait, kevent), AND we need to make sure that none of the fields that are used in that call are touched by anything that might be running concurrently in another thread. I managed to do this pretty well for everything but poll(). With poll, I needed to introduce a copy of the event_set structure. This patch also fixes a bug in win32.c where we called realloc() instead of mm_realloc(). svn:r1450
Nick Mathewson a826a758 2009-07-28T19:41:48 Some tweaks to Brodie Thesfield's MSVC patch. svn:r1386
Nick Mathewson 5b5b880b 2009-07-28T19:41:39 Various MSVC cleanups from Brodie Thiesfield. svn:r1385
Nick Mathewson a43a1c2b 2009-05-28T20:44:04 Fix compilation problems in win32.c svn:r1322
Nick Mathewson cdaca02c 2009-05-27T15:35:00 Activate fd events in a pseudorandom order on older backends. New backends like poll and kqueue and so on add fds to the queue in the order that they are triggered. But the select backend currently activates low-numbered fds first, whereas the poll and win32 backends currently favor whatever fds have been on for the longest. This is no good for fairness. svn:r1318
Nick Mathewson 8c66eb2e 2009-05-22T14:48:40 Try to contain the failure when we are running without socketpair(). Some win32 systems (mostly those using Kaspersky, it would seem) prevent us from faking socketpair(). This makes our signal notification code just not work. Our response since 1.4 has been to assert. For users who would rather work without signals than not work at all, this has been a regression from 1.3e. This patch makes adding signal events fail in this case; there's no reason to kill the whole process. svn:r1303
Nick Mathewson e865eb93 2009-05-01T00:54:14 More msvc build tweaks. svn:r1262
Nick Mathewson b2e8fd0e 2009-04-30T23:56:53 Apparently MSVC lacks a ssize_t. Define an ev_ssize_t for headers, and make ssize_t work elsewhere. svn:r1261
Nick Mathewson ebf29455 2009-04-30T23:49:15 Compilation fixes for vc++ 2008 express. Not the end of them. svn:r1260
Nick Mathewson b85b710c 2009-01-27T22:34:36 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
Nick Mathewson 89fe3167 2009-01-14T21:13:58 Update win32 code to put indices in evmap. svn:r1009
Nick Mathewson 9935d5b0 2009-01-13T21:39:32 Fix win32 compilation. Surprisingly, unit tests pass too. svn:r1002
Nick Mathewson 169321c9 2009-01-13T20:26:37 Rename four internal headers to follow the -internal.h convention. svn:r1000
Niels Provos d776f846 2008-12-23T22:23:37 deprecate the usage of signal_{add,del,set} and name it evsignal_{add,del,set} instead; move the old definitions to compat svn:r973
Niels Provos 02b2b4d1 2008-12-23T16:37:01 Restructure the event backends so that they do not need to keep track of events themselves, as a side effect multiple events can use the same fd or signal. svn:r972
Nick Mathewson 05965921 2008-05-31T14:37:31 Add new functions to access backends by their features and to query the features of a backend. svn:r842
Nick Mathewson 9ca7a3a3 2008-05-30T16:19:01 Resolve two conflicts. svn:r839
Niels Provos 9e8688a7 2008-05-15T06:10:40 windows does not have varargs macros, so this is all useless svn:r831
Niels Provos a35529c6 2008-05-15T06:03:23 add the code here until we figure out how to generate it on windows svn:r830
Nick Mathewson 04366d5a 2008-05-12T00:51:48 r19677@catbus: nickm | 2008-05-11 20:51:41 -0400 Oops; we had not changed event_malloc() to mm_malloc() [etc] in win32.c svn:r809
Nick Mathewson a26442c5 2008-05-08T14:06:33 r19649@catbus: nickm | 2008-05-08 10:00:14 -0400 Replace gettimeofday() usage with a new evutil_gettimeofday(). This removes all previous need for win32-code/misc.[ch] svn:r792
Nick Mathewson 0a804f3c 2008-05-07T21:51:49 r19641@catbus: nickm | 2008-05-07 17:51:26 -0400 Forward-port: Fix win32 vc-2005 build. svn:r786
Nick Mathewson 9859bc78 2007-12-31T20:47:12 r15764@tombo: nickm | 2007-12-31 15:46:16 -0500 Forward-port from 1.4 branch: Make generated rpc files build-depend on event_rpcgen. svn:r626
Niels Provos fbe24f43 2007-12-09T05:07:20 remove obsoleted recalc code svn:r581
Nick Mathewson cd666f80 2007-12-06T19:18:14 Debug new win32 code: make bufferevents test pass. svn:r576
Nick Mathewson 78d0de30 2007-12-06T18:38:50 Fix compile warnings and errors in win32 build. svn:r575
Nick Mathewson 2e2104f4 2007-12-06T18:13:03 r15172@tombo: nickm | 2007-12-06 12:54:37 -0500 Rewrite win32.c to use a red-black tree to map sockets to events. This changes the performance from O(N^2) to O(N lg N). Needs testing. (This was made possible by recent changes to the implementation of non-persistent events.) svn:r574
Nick Mathewson 7eb250e9 2007-11-25T17:14:19 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
Nick Mathewson 8fd2124e 2007-11-07T22:57:08 r16556@catbus: nickm | 2007-11-07 17:55:39 -0500 MSVC6 does not seem to define a useful "what is the name of this function" macro svn:r502
Nick Mathewson 4e1ec3e0 2007-11-07T21:01:26 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
Nick Mathewson 79485724 2007-11-07T06:07:54 Remove spurious #include <sys/tree.h> in win32.c. svn:r493
Nick Mathewson f0e06d75 2007-09-20T18:26:46 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
Nick Mathewson 25007183 2007-09-20T18:26:40 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
Nick Mathewson 12fe087e 2007-08-10T16:37:33 r14505@catbus: nickm | 2007-08-10 12:35:52 -0400 Fix win32 build errors (reported by Phobos): mingw gcc seems to dislike unnamed function parameters. svn:r390
Niels Provos 41b7cbc3 2007-03-10T06:37:53 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
Niels Provos b5d2f9a2 2007-03-01T06:25:18 rolling back r339: evconfig.h does not work svn:r341
Niels Provos 127c260b 2007-02-28T04:02:29 make evconfig.h available as installed header file; not really ideal but good enough for me; from Nick Mathewson svn:r339
Niels Provos 868f10e7 2006-11-22T01:21:10 mingw fixes from Nick svn:r271
Niels Provos 9f7d28bb 2006-09-27T03:07:38 make it compile with mingw; from Nick svn:r235
Niels Provos 2e8051f5 2006-03-28T04:40:54 introduce a way to free the base from Nick Mathewson <nickm@freehaven.net> svn:r210
Niels Provos 0c48c706 2005-12-08T23:05:42 windows memory corruption bug fix from I-M Weasel via Nick Mathewson. svn:r189
Niels Provos 99442c6f 2005-03-29T06:54:36 windows fixes from Nick Mathewson <nickm@freehaven.net> svn:r135
Niels Provos 42b97958 2005-02-04T11:17:18 make it compile again; from dug song svn:r130
Niels Provos 025d1bc2 2004-05-24T00:19:52 fix some of the windows compile issues; make buffer.c faster; support signals via pipes. svn:r105
Niels Provos ee8cc84e 2003-09-23T22:28:01 Windows support from Mike Davis svn:r74