more usable unix sockets classes
[senf.git] / Socket / Protocols / UN / UNDatagramSocketHandle.cc
index 360ec03..53e2188 100644 (file)
@@ -1,6 +1,7 @@
-// $Id$
-//
 // Copyright (C) 2007 
+// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS)
+// Kompetenzzentrum NETwork research (NET)
+//     David Wagner <david.wagner@fokus.fraunhofer.de>
 //
 // This program is free software; you can redistribute it and/or modify
 // it under the terms of the GNU General Public License as published by
@@ -45,7 +46,13 @@ prefix_ void senf::UNDatagramSocketProtocol::init_client() const
 prefix_ void senf::UNDatagramSocketProtocol::init_client(UNSocketAddress const & address) const
 {
     init_client();
-    //bind(address);
+    bind(address);
+}
+
+prefix_ std::auto_ptr<senf::SocketProtocol> senf::UNDatagramSocketProtocol::clone()
+    const
+{
+    return std::auto_ptr<SocketProtocol>(new UNDatagramSocketProtocol());
 }
 
 ///////////////////////////////cc.e////////////////////////////////////////