net/SocketAddress: light wrapper for struct sockaddr
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
|
||||
#include "config.h"
|
||||
#include "net/Resolver.hxx"
|
||||
#include "net/SocketAddress.hxx"
|
||||
#include "util/Error.hxx"
|
||||
#include "Log.hxx"
|
||||
|
||||
@@ -50,7 +51,7 @@ int main(int argc, char **argv)
|
||||
}
|
||||
|
||||
for (const struct addrinfo *i = ai; i != NULL; i = i->ai_next) {
|
||||
const auto s = sockaddr_to_string(i->ai_addr, i->ai_addrlen);
|
||||
const auto s = sockaddr_to_string({i->ai_addr, i->ai_addrlen});
|
||||
printf("%s\n", s.c_str());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user