- 02 Aug, 2012 1 commit
-
-
Max Kellermann authored
-
- 13 Oct, 2011 1 commit
-
-
Max Kellermann authored
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").
-
- 09 Oct, 2011 1 commit
-
-
Max Kellermann authored
In a C file, that is too late, because _mingw.h defaults to 0x0502, and ours would be illegal redefintion.
-
- 21 Sep, 2011 1 commit
-
-
Dan McGee authored
On Win32, the third setsockopt parameter has type (char *) while on POSIX systems it is (void *). However, given that it is a no-op cast to go from a char pointer to a void pointer, we can cast to a char pointer (with a possible const modifier) on all platforms and satisfy the compiler. Signed-off-by:
Dan McGee <dan@archlinux.org>
-
- 20 Sep, 2011 2 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
Wrap close(), use closesocket() on WIN32/WinSock.
-
- 19 Sep, 2011 1 commit
-
-
Dan McGee authored
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>
-
- 29 Jan, 2011 1 commit
-
-
Max Kellermann authored
-
- 18 May, 2010 1 commit
-
-
Max Kellermann authored
In the winsock headers, the setsockopt() argument is declared as "const char *", not "const void *".
-
- 22 Mar, 2010 1 commit
-
-
Avuton Olrich authored
-
- 01 Jan, 2010 1 commit
-
-
Avuton Olrich authored
-
- 12 Nov, 2009 1 commit
-
-
Max Kellermann authored
After we've been hit by Large File Support problems several times in the past week (which only occur on 32 bit platforms, which I don't have), this is yet another attempt to fix the issue.
-
- 08 Nov, 2009 1 commit
-
-
Max Kellermann authored
Changed the wrappers for pipe(), socket(), accept(). On WIN32, this does not work for pipe().
-
- 07 Nov, 2009 1 commit
-
-
Max Kellermann authored
Added the "fd_util" library, which attempts to use the new thread-safe Linux system calls pipe2(), accept4() and the options O_CLOEXEC, SOCK_CLOEXEC. Without these, it falls back to FD_CLOEXEC, which is not thread safe. This is particularly important for the "pipe" output plugin (and others, such as JACK/PulseAudio), because we were heavily leaking file descriptors to child processes.
-
- 01 Apr, 2009 1 commit
-
-
Max Kellermann authored
g_set_error() is a printf-like function, and expects a format string. Using the return value of gai_strerror() is unsafe.
-
- 16 Mar, 2009 1 commit
-
-
Max Kellermann authored
g_strerror() is more portable, and guarantees that the returned string is UTF-8 encoded.
-
- 14 Mar, 2009 1 commit
-
-
Max Kellermann authored
Moved code from listen_add_address() (listen.c) to socket_util.c.
-
- 13 Mar, 2009 1 commit
-
-
Avuton Olrich authored
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.
-
- 06 Mar, 2009 1 commit
-
-
Max Kellermann authored
On some systems, the macro IN6_IS_ADDR_V4MAPPED() is not available. Don't try to convert IPv6 to their IPV4 equivalents in this case.
-
- 01 Mar, 2009 1 commit
-
-
Max Kellermann authored
Windows doesn't have the standard headers sys/socket.h and netdb.h.
-
- 28 Feb, 2009 2 commits
-
-
Max Kellermann authored
Unpack IPv4 addresses which are packed inside an IPv6 address, i.e. return "127.0.0.1" rather than "::ffff:127.0.0.1".
-
Max Kellermann authored
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.
-
- 22 Feb, 2009 3 commits
-
-
Max Kellermann authored
This new LAME encoder plugin is based on the existing shout_mp3.c plugin.
-
Max Kellermann authored
This new vorbis encoder plugin is based on the existing shout_ogg.c plugin.
-
Max Kellermann authored
The new generic encoder API will replace shout's custom encoder API.
-
- 07 Jan, 2009 1 commit
-
-
Max Kellermann authored
-
- 03 Jan, 2009 1 commit
-
-
Max Kellermann authored
Don't use libc's rand() function, because it is slow. Our own trivial linear congruential generator is good enough for dithering.
-
- 30 Dec, 2008 2 commits
-
-
Max Kellermann authored
redirect_stdin() is a daemonization function, and disconnecting from the standard input is always a good idea for MPD.
-
Max Kellermann authored
-
- 27 Dec, 2008 2 commits
-
-
Max Kellermann authored
Prepare for the migration to the GLib option parser, which uses gboolean for flags.
-
Max Kellermann authored
-
- 31 Oct, 2008 1 commit
-
-
Max Kellermann authored
"LOG_H" is a macro which is also used by ffmpeg/log.h. This is ffmpeg's fault, because short macros should be reserved for applications, but since it's always a good idea to choose prefixed macro names, even for applications, we are going to do that in MPD.
-
- 08 Oct, 2008 1 commit
-
-
Max Kellermann authored
When there are standardized headers, use these instead of the bloated os_compat.h.
-
- 09 Sep, 2008 2 commits
-
-
Max Kellermann authored
Similar to decoder_control.c, output_control.c will provide functions for controlling the output thread (which will be implemented later).
-
Max Kellermann authored
This function is declared, but is neither used nor implemented.
-
- 08 Sep, 2008 1 commit
-
-
Max Kellermann authored
Instead of having to register each output plugin, store them statically in an array. This eliminates the need for the List library here, and saves some small allocations during startup.
-
- 07 Sep, 2008 3 commits
-
-
Max Kellermann authored
Also rename AudioOutputPlugin to struct audio_output_plugin, and use forward declarations to reduce include dependencies.
-
Max Kellermann authored
Just like decoder_api.h, output_api.h provides the audio output API which is used by the plugins.
-
Max Kellermann authored
Get rid of CamelCase, and don't use a typedef, so we can forward-declare it, and unclutter the include dependencies.
-
- 29 Aug, 2008 1 commit
-
-
Max Kellermann authored
Getting rid of CamelCase; not having typedefs also allows us to forward-declare the structures.
-