Code

mpdclient: connect to MPD asynchronously
authorMax Kellermann <max.kellermann@gmail.com>
Fri, 17 Mar 2017 14:53:09 +0000 (15:53 +0100)
committerMax Kellermann <max.kellermann@gmail.com>
Sun, 19 Mar 2017 12:58:17 +0000 (13:58 +0100)
commit0ed117e41692a6ee764984e6855492e5945f7883
treebf1d8e2ac8d8e6cb2df4e7e5f37a3a2446a63e8f
parentd007e2dcb6061fc516802175fe98df951253a097
mpdclient: connect to MPD asynchronously

This way, the user can really cancel the connection attempt at any
time, and does not need to wait for a timeout.

This duplicates some code from libmpdclient, but unfortunately
libmpdclient doesn't expose a usable API for connecting asynchronously
yet.
16 files changed:
Makefile.am
NEWS
configure.ac
src/aconnect.c [new file with mode: 0644]
src/aconnect.h [new file with mode: 0644]
src/mpdclient.c
src/mpdclient.h
src/net/async_connect.c [new file with mode: 0644]
src/net/async_connect.h [new file with mode: 0644]
src/net/async_rconnect.c [new file with mode: 0644]
src/net/async_rconnect.h [new file with mode: 0644]
src/net/resolver.c [new file with mode: 0644]
src/net/resolver.h [new file with mode: 0644]
src/net/socket.c [new file with mode: 0644]
src/net/socket.h [new file with mode: 0644]
src/net/types.h [new file with mode: 0644]