kc3-lang/libevent/listener.c

Branch :


Log

Author Commit Date CI Message
899c1dcc 2010-04-14 15:42:57 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)
17efc1cd 2010-03-04 01:25:51 Update all our copyright notices to say "2010"
e5cf9879 2010-02-18 17:46:56 Clean up formatting: remove trailing spaces
cb52838f 2010-02-18 00:27:35 When working without a current event base, don't try to use IOCP listeners This fixes a bug turned up with the http unit tests, where we create the evhttp object using an implicit (NULL) event_base. This failed pretty badly when we tried to use IOCP-based listeners. We could hunt for the current base from inside listener.c in the future, or get the iocp base some other way, but for now this is probably the safest solution.
cef61a2f 2010-01-26 12:08:17 Use ev_[u]intptr_t types in place of [u]intptr_t
a19b4a05 2010-01-25 13:38:07 Call event_debug_unassign on internal events I don't expect that many users will be so religious about calling unassign, but we need to be so that it's at least possible to use debug mode without eating memory.
510ab6bc 2009-12-30 19:24:39 Comestic changes in evconnlistener_new(), new_accepting_socket(), accepted_socket_invoke_user_cb() and iocp_listener_enable().
fec66f96 2009-12-30 19:22:23 Improved error handling in evconnlistener_new_async(). Also keeping the fd open because it is not opened by this function, so the caller is responsible for closing it. Additionally, since evconnlistener_new_bind() creates a socket and passes it to the function above, it required error checking to close the same socket.
4367a33a 2009-12-30 19:09:14 Fixed a fd leak in start_accepting(), plus cosmetic changes
d0939d2b 2009-12-29 16:21:26 Introduced evutil_make_socket_closeonexec() to preserve fd flags for F_SETFD. Use this to eliminate the various macros that called F_SETFD throughout the code.