Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2015-07-22 | event/ServerSocket: use AllocatedSocketAddress to build local socket address | Max Kellermann | 1 | -13/+4 | |
2015-07-22 | event/ServerSocket: use AllocatedSocketAddress for OneServerSocket::address | Max Kellermann | 1 | -9/+14 | |
Manages memory automatically. | |||||
2015-07-22 | net/StaticSocketAddress: replace cast operator with GetAddress() | Max Kellermann | 1 | -2/+2 | |
The implicit cast operator can be very dangerous. | |||||
2015-07-22 | net/ToString: rename sockaddr_to_string() to ToString() | Max Kellermann | 1 | -1/+1 | |
2015-07-22 | net/Resolver: move sockaddr_to_string() to ToString.cxx | Max Kellermann | 1 | -0/+1 | |
2015-03-05 | event/ServerSocket: #ifdef out local socket support on Windows | Max Kellermann | 1 | -0/+8 | |
2015-02-13 | net/StaticSocketAdress: new class wrapping struct sockaddr_storage | Max Kellermann | 1 | -7/+11 | |
2015-02-10 | net/SocketAddress: light wrapper for struct sockaddr | Max Kellermann | 1 | -22/+21 | |
2015-02-10 | system/{Resolver,Socket{Error,Util}}: move to new library libnet.a | Max Kellermann | 1 | -3/+3 | |
2015-02-10 | event/ServerSocket: remove obsolete macro DEFAULT_PORT | Max Kellermann | 1 | -2/+0 | |
2015-01-01 | Copyright year 2015 | Max Kellermann | 1 | -1/+1 | |
2014-12-04 | playlist, InotifySource, ...: update GLib comments | Max Kellermann | 1 | -1/+1 | |
2014-11-18 | event/ServerSocket: fix get_remote_uid() error value | Max Kellermann | 1 | -1/+1 | |
Must return -1 on error, not 0. 0 is root. | |||||
2014-03-15 | configure.ac: always define _GNU_SOURCE on Linux | Max Kellermann | 1 | -5/+0 | |
Make sure glibc gives us all features. | |||||
2014-01-13 | copyright year 2014 | Max Kellermann | 1 | -1/+1 | |
2014-01-07 | util/Alloc: new library replacing GLib's g_malloc() | Max Kellermann | 1 | -4/+3 | |
2014-01-06 | event/SocketMonitor: don't close the socket automatically | Max Kellermann | 1 | -0/+3 | |
Users now have to call Close() explicitly. This simplifies using the class, as most users have automatic socket management already, and Steal() had to be used often. | |||||
2013-12-04 | system/Resolver: sockaddr_to_string() returns std::string() | Max Kellermann | 1 | -22/+11 | |
No GLib memory allocation. | |||||
2013-11-28 | include cleanup using iwyu | Max Kellermann | 1 | -0/+1 | |
2013-11-04 | event/ServerSocket: don't abort if IPv6 is not available | Max Kellermann | 1 | -1/+19 | |
First check if an IPv6 socket can be created. | |||||
2013-11-04 | event/ServerSocket: fix assertion failure | Max Kellermann | 1 | -1/+1 | |
Regression from previous commit. D'oh! | |||||
2013-11-04 | event/ServerSocket: open sockets in the order they were configured | Max Kellermann | 1 | -3/+3 | |
Use a std::list which can be appended at the end. | |||||
2013-10-19 | event/ServerSocket: pass AllocatedPath to AddPath() | Max Kellermann | 1 | -13/+16 | |
2013-10-02 | Log: new logging library API | Max Kellermann | 1 | -11/+12 | |
Prepare to migrate away from GLib. Currently, we're still using GLib as a backend. | |||||
2013-09-04 | system/SocketError: un-inline constructor | Max Kellermann | 1 | -0/+2 | |
Reduces header dependencies. | |||||
2013-09-04 | util/Error: new error passing library | Max Kellermann | 1 | -41/+35 | |
Replaces GLib's GError. | |||||
2013-09-04 | system/resolver: convert to C++ | Max Kellermann | 1 | -1/+1 | |
2013-08-07 | Makefile.am: move sources to libsystem.a | Max Kellermann | 1 | -4/+4 | |
2013-02-04 | event/ServerSocket: close only sockets that have been opened | Max Kellermann | 1 | -1/+3 | |
Fixes assertion failure. | |||||
2013-02-04 | ServerSocket: Initialize length variable | Uli Schlachter | 1 | -1/+1 | |
2013-01-30 | ServerSocket: replace callback with virtual method | Max Kellermann | 1 | -12/+7 | |
2013-01-30 | ServerSocket: expose the class | Max Kellermann | 1 | -103/+59 | |
Eliminate the C wrappers. | |||||
2013-01-30 | ServerSocket: move to libevent.a | Max Kellermann | 1 | -0/+0 | |
2013-01-30 | event/SocketMonitor: OnSocketReady() returns bool | Max Kellermann | 1 | -2/+3 | |
2013-01-15 | ServerSocket: use the SocketMonitor class | Max Kellermann | 1 | -50/+28 | |
2013-01-15 | ServerSocket: move more code to methods | Max Kellermann | 1 | -19/+30 | |
2013-01-15 | ServerSocket, SocketUtil: use the SocketError library | Max Kellermann | 1 | -7/+9 | |
Use WinSock errors on Windows. | |||||
2013-01-15 | socket_util: convert to C++ | Max Kellermann | 1 | -1/+1 | |
2013-01-15 | server_socket: convert to C++ | Max Kellermann | 1 | -135/+145 | |
2012-07-10 | require GLib 2.16 | Max Kellermann | 1 | -1/+0 | |
GLib 2.16 was released more than 4 years ago. Let's remove some cruft from the glib_compat.h header, and avoid new cruft to it. | |||||
2012-02-13 | server_socket: add method _add_fd() | Max Kellermann | 1 | -0/+30 | |
2012-02-13 | server_socket: move code to set_fd() | Max Kellermann | 1 | -8/+21 | |
2011-10-13 | configure.ac: define WINVER | Max Kellermann | 1 | -1/+0 | |
Ensure that WINVER is defined early enough, so other system headers won't fall back to their default value. Specifically, this solves a build failure (-Werror) with mingw-w64 ("WINVER redefined"). | |||||
2011-10-09 | don't define WINVER in *.c files | Max Kellermann | 1 | -1/+0 | |
In a C file, that is too late, because _mingw.h defaults to 0x0502, and ours would be illegal redefintion. | |||||
2011-09-20 | server_socket: use resolve_host_port() instead of getaddrinfo() | Max Kellermann | 1 | -17/+4 | |
Allow port specification in "bind_to_address" settings. | |||||
2011-09-20 | socket_util: move sockaddr_to_string() to resolver.c | Max Kellermann | 1 | -0/+1 | |
2011-09-20 | fd_util: add function close_socket() | Max Kellermann | 1 | -1/+1 | |
Wrap close(), use closesocket() on WIN32/WinSock. | |||||
2011-09-20 | glib_socket.h: wrap g_io_channel_*_new() calls portably | Max Kellermann | 1 | -1/+2 | |
The server_socket library (used by the httpd output plugin) didn't check for WIN32, that's fixed now. | |||||
2011-09-19 | Set socket TCP keepalive option on incoming connections | Dan McGee | 1 | -2/+6 | |
If a connected host disappears without our knowledge, as can happen over wireless or a hibernating machine, we continue to hold the port open waiting for messages. Because we never try to send anything down this now-broken pipe, the connection will sit idle taking up a slot in our allowed incoming connections list. If enough of these happen, an unintended Denial of Service takes place, where all connection slots are filled with now-broken, never ending connections. Setting the TCP keepalive option at least allows these to time out after the default two hours, which is sufficient in the non-malicious case. Signed-off-by: Dan McGee <dan@archlinux.org> | |||||
2011-01-29 | copyright year 2011 | Max Kellermann | 1 | -1/+1 | |