aboutsummaryrefslogtreecommitdiff
path: root/src/socket_util.h
Commit message (Collapse)AuthorAge
* socket_util: move sockaddr_to_string() to resolver.cMax Kellermann2011-09-20
|
* Set socket TCP keepalive option on incoming connectionsDan McGee2011-09-19
| | | | | | | | | | | | | | | | 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>
* fix common misspellingsJonathan Neuschäfer2011-03-31
| | | | | | | These fixes were mostly generated with `codespell' [0] and manually reviewed. [0] http://git.profusion.mobi/cgit.cgi/lucas/codespell/
* copyright year 2011Max Kellermann2011-01-29
|
* Update copyright notices.Avuton Olrich2009-12-31
|
* socket_util: added socket_bind_listen()Max Kellermann2009-03-14
| | | | Moved code from listen_add_address() (listen.c) to socket_util.c.
* all: Update copyright header.Avuton Olrich2009-03-13
| | | | | | | | This updates the copyright header to all be the same, which is pretty much an update of where to mail request for a copy of the GPL and the years of the MPD project. This also puts all committers under 'The Music Player Project' umbrella. These entries should go individually in the AUTHORS file, for consistancy.
* socket_util: added function sockaddr_to_string()Max Kellermann2009-02-28
Create the socket_util.c library, the first function is sockaddr_to_string(): it converts a sockaddr struct to a string containing the IP address in a human-readable form.