- 17 Jan, 2009 1 commit
-
-
Max Kellermann authored
Renamed functions, types, variables.
-
- 16 Jan, 2009 1 commit
-
-
Max Kellermann authored
-
- 15 Jan, 2009 1 commit
-
-
Max Kellermann authored
The function ipv6Supported() is not used at all when IPv6 support was disabled at compile time.
-
- 10 Jan, 2009 2 commits
-
-
Max Kellermann authored
Free memory before exiting.
-
Max Kellermann authored
Make the listen socket an object, allowing us to add more fields later. Convert listenSockets into a simple linked list.
-
- 03 Jan, 2009 3 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
WIN32 has no getaddrinfo(). Fall back to gethostbyname().
-
- 30 Dec, 2008 5 commits
-
-
Max Kellermann authored
This is a rather huge patch, which unfortunately cannot be splitted. Instead of using our custom ioops.h library, convert everything to use the GLib main loop.
-
Max Kellermann authored
There is no point in making the server socket non-blocking. We call accept() only after select() has notified us about a new connection.
-
Max Kellermann authored
On Windows, socket declarations reside in winsock.h and ws2tcpip.h. The POSIX headers are not available.
-
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
Merged freeAllListenSockets() into closeAllListenSockets(), because this is its only caller.
-
- 29 Dec, 2008 2 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
Only include headers which are really needed. os_compat.h aimed to make MPD easily portable, but was never actually made portable.
-
- 24 Dec, 2008 1 commit
-
-
Max Kellermann authored
Add a G_GNUC_UNUSED attribute.
-
- 02 Dec, 2008 2 commits
-
-
Max Kellermann authored
AI_ADDRCONFIG is not available on all operating systems. Check if it is defined in the current build environment.
-
Max Kellermann authored
The getaddrinfo() flag AI_PASSIVE should be used when resolving addresses for the bind() system call.
-
- 07 Nov, 2008 1 commit
-
-
Tom Servo authored
The listen.c module breaks the build because the variable name used ("sun") for the Unix domain socket part collides with something else on an OpenSolaris system, likely Sun specific. Renaming it to _sun (or something else of choice) fixes the build. [mk: renamed to "s_un"]
-
- 30 Oct, 2008 1 commit
-
-
Max Kellermann authored
Depending on MPD's umask, the file permissions of the unix socket were too restrictive, and many clients were not able to connect. Do a chmod(0666) on the socket, to allow everybody to connect.
-
- 18 Oct, 2008 1 commit
-
-
Andrzej Rybczak authored
The macro name is HAVE_STRUCT_UCRED, not HAVE_UCRED.
-
- 17 Oct, 2008 1 commit
-
-
Max Kellermann authored
The local variable "passcred" was only used by ucred code.
-
- 16 Oct, 2008 1 commit
-
-
Max Kellermann authored
By default, glibc 2.8 hides struct ucred behind the _GNU_SOURCE macro. I don't want to enable that globally, because it may encourage the use of non-portable functions. Test if "struct ucred" is available, and enable _GNU_SOURCE if required. For details about that issue, see glib's bug database: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6545
-
- 15 Oct, 2008 3 commits
-
-
Max Kellermann authored
Enable authentication over unix sockets. Store the client's uid in the client struct.
-
Max Kellermann authored
The caller already knows the protocol family, and we can eliminate the complicated switch statement in establishListen() if we just pass this information. This seems more robust.
-
Max Kellermann authored
getaddrinfo() is more robust and has proper IPv6 support. The new code tries to bind to all IP addresses returned by getaddrinfo().
-
- 28 Aug, 2008 2 commits
-
-
Max Kellermann authored
Functions which operate on the whole client list are prefixed with "client_manager_", and functions which handle just one client just get "client_".
-
Max Kellermann authored
I don't believe "interface" is a good name for something like "connection by a client to MPD", let's call it "client". This is the first patch in the series which changes the name, beginning with the file name.
-
- 12 Apr, 2008 7 commits
-
-
Max Kellermann authored
If a unix domain socket already exists, bind() fails. Unlink the socket file. git-svn-id: https://svn.musicpd.org/mpd/trunk@7335 09075e82-0dd4-0310-85a5-a0d7c8717e4f
-
Max Kellermann authored
Try to only include headers which are really needed. We should particularly check all "headers including other headers". The long-term goal is to have a manageable, small API for plugins (decoders, output) without so many mpd internals cluttering the namespace. git-svn-id: https://svn.musicpd.org/mpd/trunk@7319 09075e82-0dd4-0310-85a5-a0d7c8717e4f
-
Max Kellermann authored
git-svn-id: https://svn.musicpd.org/mpd/trunk@7238 09075e82-0dd4-0310-85a5-a0d7c8717e4f
-
Max Kellermann authored
autoconf flags for enabling and disabling TCP and unix domain socket support. Embedded machines without a TCP stack may be better off without TCP support. git-svn-id: https://svn.musicpd.org/mpd/trunk@7236 09075e82-0dd4-0310-85a5-a0d7c8717e4f
-
Max Kellermann authored
This trivial patch addresses bug 1639. When a bind_to_address argument starts with a slash, assume that it is the address of a Unix domain socket. git-svn-id: https://svn.musicpd.org/mpd/trunk@7235 09075e82-0dd4-0310-85a5-a0d7c8717e4f
-
Max Kellermann authored
It is a good practice to constify pointers when their dereferenced data is not modified within the functions or its descendants. git-svn-id: https://svn.musicpd.org/mpd/trunk@7234 09075e82-0dd4-0310-85a5-a0d7c8717e4f
-
Max Kellermann authored
The parameter "port" is not actually used by establishListen(), and can be removed. This also allows establishListen() to be used for socket addresses which have no port. git-svn-id: https://svn.musicpd.org/mpd/trunk@7233 09075e82-0dd4-0310-85a5-a0d7c8717e4f
-
- 26 Mar, 2008 1 commit
-
-
Eric Wong authored
* move set_nonblock{,ing}() into utils.c since we use it elsewhere, too * add proper error checking to set_nonblocking() * use os_compat.h instead of individually #includ-ing system headers git-svn-id: https://svn.musicpd.org/mpd/trunk@7217 09075e82-0dd4-0310-85a5-a0d7c8717e4f
-
- 05 Feb, 2008 1 commit
-
-
Eric Wong authored
git-svn-id: https://svn.musicpd.org/mpd/trunk@7182 09075e82-0dd4-0310-85a5-a0d7c8717e4f
-
- 03 Jan, 2008 1 commit
-
-
Eric Wong authored
This will make refactoring features easier, especially now that pthreads support and larger refactorings are on the horizon. Hopefully, this will make porting to other platforms (even non-UNIX-like ones for masochists) easier, too. os_compat.h will house all the #includes for system headers considered to be the "core" of MPD. Headers for optional features will be left to individual source files. git-svn-id: https://svn.musicpd.org/mpd/trunk@7130 09075e82-0dd4-0310-85a5-a0d7c8717e4f
-
- 05 Sep, 2007 1 commit
-
-
Eric Wong authored
This way we'll avoid listening on fd=0 and have a better chance of having fd=0 as /dev/null git-svn-id: https://svn.musicpd.org/mpd/trunk@6852 09075e82-0dd4-0310-85a5-a0d7c8717e4f
-
- 27 Aug, 2007 1 commit
-
-
Eric Wong authored
This attribute was set in log.c, but not exported to other modules in log.h This allows us to remove some unneccessary variable initializations that were added in r6277. I did audioOutput_shout.c a bit differently, to avoid some jumps. before: $ size src/mpd text data bss dec hex filename 225546 4040 14600 244186 3b9da src/mpd after: $ size src/mpd text data bss dec hex filename 224698 4040 14600 243338 3b68a src/mpd git-svn-id: https://svn.musicpd.org/mpd/trunk@6821 09075e82-0dd4-0310-85a5-a0d7c8717e4f
-