Sebastian Sjöberg
899c1dcc98
Replace EVUTIL_CLOSESOCKET macro with a function
...
The EVUTIL_CLOSESOCKET() macro required you to include unistd.h in your
source for POSIX. We might as well turn it into a function: an extra
function call is going to be cheap in comparison with the system call.
We retain the EVUTIL_CLOSESOCKET() macro as an alias for the new
evutil_closesocket() function.
(commit message from email by Nick and Sebastian)
2010-04-14 15:42:57 -04:00
Nick Mathewson
274a7bd9a1
Fix some memory leaks in the unit tests
...
These don't matter except inasmuch as they give real memory leaks
a place to hide.
Found with valgrind
2010-03-13 00:56:07 -05:00
Nick Mathewson
17efc1cdfa
Update all our copyright notices to say "2010"
2010-03-04 01:38:48 -05:00
Nick Mathewson
e5bbd40ad7
Clean up formatting: use tabs, not 8-spaces, to indent.
2010-02-18 17:44:09 -05:00
Nick Mathewson
e2ca403fae
Make it compile under gcc --std=c89.
2010-01-23 16:23:45 -05:00
Nick Mathewson
625a261a53
OpenBSD demands that sys/types.h be included before sys/socket.h
...
svn:r1539
2009-11-17 02:40:14 +00:00
Nick Mathewson
0aa6f5136a
Fix remaining AcceptEx issues.
...
svn:r1492
2009-11-02 20:59:13 +00:00
Nick Mathewson
e794d716a3
Clean up acceptex code some more: add locking, single-threading, enable/disable.
...
svn:r1491
2009-11-02 20:20:40 +00:00
Nick Mathewson
9a772148f2
Compilation and correctness fixes for IOCP listener code.
...
svn:r1489
2009-11-02 19:31:29 +00:00
Nick Mathewson
5f1d6e640f
Add more IOCP tests. They might not pass yet.
...
svn:r1487
2009-11-02 17:42:16 +00:00
Nick Mathewson
8a3007efb9
More evconnlistener unit tests: bump its coverage from 71% to 83%.
...
svn:r1392
2009-07-30 17:01:38 +00:00