aboutsummaryrefslogtreecommitdiffstats
path: root/src/Listen.cxx (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-01-13copyright year 2014Max Kellermann1-1/+1
2013-10-19*: use nullptr instead of NULLMax Kellermann1-5/+5
2013-10-19event/ServerSocket: pass AllocatedPath to AddPath()Max Kellermann1-2/+3
2013-10-17fs/Path: rename to AllocatedPathMax Kellermann1-2/+2
The new class Path only holds a string pointer without being responsible for allocation/deallocation. The FileSystem.hxx library accepts Path arguments instead of AllocatedPath, to avoid forcing callers to allocate another string object.
2013-10-15Client, ...: remove unnecessary glib.h includeMax Kellermann1-2/+0
2013-10-15ConfigData: use std::string for config_param::valueMax Kellermann1-3/+5
2013-10-02Log: new logging library APIMax Kellermann1-5/+6
Prepare to migrate away from GLib. Currently, we're still using GLib as a backend.
2013-10-02Listen, ...: add missing includesMax Kellermann1-0/+2
2013-09-12Listen: Allow tilde paths for socket.Maarten de Vries1-2/+4
2013-09-05conf.h: remove obsolete headerMax Kellermann1-1/+3
Use only ConfigData.hxx in plugin sources to reduce header dependencies.
2013-09-04util/Error: new error passing libraryMax Kellermann1-18/+12
Replaces GLib's GError.
2013-04-17Main: move global variables to struct InstanceMax Kellermann1-1/+2
More preparations for multi-player support.
2013-01-30ServerSocket: replace callback with virtual methodMax Kellermann1-10/+14
2013-01-30ServerSocket: expose the classMax Kellermann1-11/+13
Eliminate the C wrappers.
2013-01-30ServerSocket: move to libevent.aMax Kellermann1-1/+1
2013-01-15ServerSocket: use the SocketMonitor classMax Kellermann1-1/+3
2013-01-15server_socket: convert to C++Max Kellermann1-4/+1
2013-01-15Client: rebase on the new BufferedSocket classMax Kellermann1-1/+1
2013-01-07Client: add Partition reference attributeMax Kellermann1-2/+1
playlist and player_control are deprecated.
2013-01-07decoder_api.h, ...: add "extern C"Max Kellermann1-1/+1
2013-01-05Partition: new class, container for Playlist and PlayerControlMax Kellermann1-2/+2
This is the beginning of multi-player support. There will be support for multiple Partition objects in one MPD process.
2013-01-04Client: add "playlist" attributeMax Kellermann1-1/+3
Reduce access to the global variable "g_playlist".
2013-01-03client: convert to C++Max Kellermann1-1/+1
2013-01-03listen: convert to C++Max Kellermann1-3/+6
2012-09-28main: use C++ compilerMax Kellermann1-1/+1
2012-07-10require GLib 2.16Max Kellermann1-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-13listen: implement systemd socket activationMax Kellermann1-0/+36
2011-03-23listen: suppress "unused variable" warningMax Kellermann1-0/+2
2011-01-29copyright year 2011Max Kellermann1-1/+1
2011-01-10player_control: removed the global variable "pc"Max Kellermann1-1/+2
Allocate a player_control object where needed, and pass it around. Each "client" object is associated with a "player_control" instance. This prepares multi-player support.
2010-10-05listen: move generic code to server_socket.cMax Kellermann1-354/+20
2010-09-23listen: fix "unused parameter" warning on WIN32Max Kellermann1-0/+2
2010-06-30Make get_remote_uid() work on BSDAndreas Vögele1-1/+7
I've attached a patch that will make file URIs work on operating systems that provide the getpeereid() function call to check the user ID of the peer connected to a UNIX domain socket.
2010-06-19Make get_remote_uid() work on BSDAndreas Vögele1-1/+7
I've attached a patch that will make file URIs work on operating systems that provide the getpeereid() function call to check the user ID of the peer connected to a UNIX domain socket.
2010-03-21Define winnt or greater on mingw32 to take advantage of get*info().Avuton Olrich1-0/+1
2009-12-31Update copyright notices.Avuton Olrich1-1/+1
2009-11-12include config.h in all sourcesMax Kellermann1-1/+1
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.
2009-11-10configure.ac: require GLib 2.12Max Kellermann1-0/+1
Drop the required GLib version from 2.16 to 2.12, because many current systems still don't have GLib 2.16. This requires several new compatibility functions in glib_compat.h.
2009-11-08fd_util: added O_NONBLOCK functionsMax Kellermann1-4/+2
Changed the wrappers for pipe(), socket(), accept(). On WIN32, this does not work for pipe().
2009-11-07set the close-on-exec flag on all file descriptorsMax Kellermann1-2/+3
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.
2009-09-24listen: handle fatal errors with GErrorMax Kellermann1-8/+15
Don't call g_error(), which will abort the process and dump core.
2009-06-10listen: bind() failure on secondary address is non-fatalMax Kellermann1-3/+25
Several users had problems with binding MPD to "localhost". The cause was duplicate /etc/hosts entries: the resolver library returns 127.0.0.1 twice, and of course, MPD attempts to bind to "both" of them. This patch makes failures non-fatal, given that at least one address was bound successfully. This is a workaround; users should rather fix their /etc/hosts file.
2009-06-10listen: renamed "error" to "error_r" in listen_add_host()Max Kellermann1-4/+4
2009-06-10listen: print debug message before bind()Max Kellermann1-0/+7
Dump each socket address before binding to it.
2009-03-27Uniform getaddrinfo() on WIN32 or POSIX, because MinGW now supports itSean McNamara1-23/+0
2009-03-14socket_util: added socket_bind_listen()Max Kellermann1-41/+4
Moved code from listen_add_address() (listen.c) to socket_util.c.
2009-03-13all: Update copyright header.Avuton Olrich1-6/+7
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.
2009-03-01listen: return GError on "unix path too long"Max Kellermann1-2/+5
When the unix domain socket path is too long, don't abort with g_error().
2009-03-01listen: removed unused macro BINDERROR()Max Kellermann1-6/+0
2009-03-01listen: fix windows specific codeMax Kellermann1-5/+8
During the listen_add_host() API transition, the windows code wasn't tested, and several removed arguments are still in use there.