diff C++/SocketListener.cpp @ 247:806dbb6011c7

Socket: * Make copyable so it's easier to use with SocketListener * Remove domain(), type() and protocol() functions because accept() can not determine them
author David Demelier <markand@malikania.fr>
date Tue, 30 Sep 2014 20:44:50 +0200
parents 3c12f0e8bbb9
children 4ad3c85ab73e
line wrap: on
line diff
--- a/C++/SocketListener.cpp	Mon Sep 29 12:57:43 2014 +0200
+++ b/C++/SocketListener.cpp	Tue Sep 30 20:44:50 2014 +0200
@@ -30,7 +30,7 @@
 	m_sockets.reserve(count);
 }
 
-void SocketListener::add(Socket &&s)
+void SocketListener::add(Socket s)
 {
 	m_sockets.push_back(std::move(s));
 }