Socket: Move protocol into the socket body (as private base class) and allow non...
[senf.git] / Socket / Protocols / UN / UNDatagramSocketHandle.cc
index 36c9bc7..42d7f38 100644 (file)
@@ -1,6 +1,8 @@
+// $Id$
+//
 // Copyright (C) 2007 
 // Fraunhofer Institute for Open Communication Systems (FOKUS) 
-// Kompetenzzentrum NETwork research (NET)
+// Competence Center NETwork research (NET), St. Augustin, GERMANY 
 //     David Wagner <dw6@berlios.de>
 //
 // This program is free software; you can redistribute it and/or modify
@@ -46,13 +48,7 @@ prefix_ void senf::UNDatagramSocketProtocol::init_client() const
 prefix_ void senf::UNDatagramSocketProtocol::init_client(UNSocketAddress const & address) const 
 {
     init_client();
-    bind(address);
-}
-
-prefix_ std::auto_ptr<senf::SocketProtocol> senf::UNDatagramSocketProtocol::clone()
-    const
-{
-    return std::auto_ptr<SocketProtocol>(new UNDatagramSocketProtocol());
+    clientHandle().bind(address);
 }
 
 ///////////////////////////////cc.e////////////////////////////////////////