aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/Resolver.hxx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/net/Resolver.hxx (renamed from src/system/Resolver.hxx)9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/system/Resolver.hxx b/src/net/Resolver.hxx
index 54922d98f..28d2c784b 100644
--- a/src/system/Resolver.hxx
+++ b/src/net/Resolver.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,23 +26,20 @@
#include <stddef.h>
-struct sockaddr;
struct addrinfo;
class Error;
class Domain;
+class SocketAddress;
extern const Domain resolver_domain;
/**
* Converts the specified socket address into a string in the form
* "IP:PORT".
- *
- * @param sa the sockaddr struct
- * @param length the length of #sa in bytes
*/
gcc_pure
std::string
-sockaddr_to_string(const sockaddr *sa, size_t length);
+sockaddr_to_string(SocketAddress address);
/**
* Resolve a specification in the form "host", "host:port",