diff options
Diffstat (limited to '')
-rw-r--r-- | src/net/SocketUtil.hxx (renamed from src/system/SocketUtil.hxx) | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/system/SocketUtil.hxx b/src/net/SocketUtil.hxx index 652788759..e7f6b8eaa 100644 --- a/src/system/SocketUtil.hxx +++ b/src/net/SocketUtil.hxx @@ -1,5 +1,5 @@ /* - * Copyright (C) 2003-2014 The Music Player Daemon Project + * Copyright (C) 2003-2015 The Music Player Daemon Project * http://www.musicpd.org * * This program is free software; you can redistribute it and/or modify @@ -26,9 +26,7 @@ #ifndef MPD_SOCKET_UTIL_HXX #define MPD_SOCKET_UTIL_HXX -#include <stddef.h> - -struct sockaddr; +class SocketAddress; class Error; /** @@ -39,7 +37,6 @@ class Error; * @param type the socket type, e.g. SOCK_STREAM * @param protocol the protocol, usually 0 to let the kernel choose * @param address the address to listen on - * @param address_length the size of #address * @param backlog the backlog parameter for the listen() system call * @param error location to store the error occurring, or NULL to * ignore errors @@ -47,7 +44,7 @@ class Error; */ int socket_bind_listen(int domain, int type, int protocol, - const struct sockaddr *address, size_t address_length, + SocketAddress address, int backlog, Error &error); |