- sock.signal_data_available.connect(sigc::mem_fun(this, &Server::data_available));
- RefPtr<Net::SockAddr> addr = Net::resolve("*", format("%d", port));
+ listen(port);
+}
+
+// Avoid emitting sigc::signal destructor in files including server.h
+Server::~Server()
+{
+}
+
+void Server::listen(unsigned port)
+{
+ RefPtr<Net::SockAddr> addr = Net::resolve("*", format("%d", port), Net::INET6);