X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FProtocols%2FINet%2FRawINetSocketHandle.cc;h=eb396284d2a7b03dd032d6dfc25b6d3cf767d8b1;hb=5443435c4c2b6e4386c5334b5b8358273f2bae93;hp=c77594835a51dd98d0dde983c05272f3ca222b12;hpb=5ed1fa1c42763aebad06c1e4ac8fc5a19e15519a;p=senf.git diff --git a/Socket/Protocols/INet/RawINetSocketHandle.cc b/Socket/Protocols/INet/RawINetSocketHandle.cc index c775948..eb39628 100644 --- a/Socket/Protocols/INet/RawINetSocketHandle.cc +++ b/Socket/Protocols/INet/RawINetSocketHandle.cc @@ -1,8 +1,8 @@ // $Id: RawINetSocketHandle.cc 597 2008-01-15 09:16:20Z g0dil $ // -// Copyright (C) 2007 -// Fraunhofer Institute for Open Communication Systems (FOKUS) -// Competence Center NETwork research (NET), St. Augustin, GERMANY +// Copyright (C) 2007 +// Fraunhofer Institute for Open Communication Systems (FOKUS) +// Competence Center NETwork research (NET), St. Augustin, GERMANY // David Wagner // // This program is free software; you can redistribute it and/or modify @@ -48,7 +48,7 @@ senf::RawV4SocketProtocol::init_client(int const & protocol) { int sock = ::socket(PF_INET, SOCK_RAW, protocol); if (sock < 0) - throwErrno(); + SENF_THROW_SYSTEM_EXCEPTION(""); fd(sock); } @@ -60,12 +60,6 @@ senf::RawV4SocketProtocol::init_client(int const & protocol, INet4SocketAddress clientHandle().bind(address); } -prefix_ std::auto_ptr senf::RawV4SocketProtocol::clone() - const -{ - return std::auto_ptr(new RawV4SocketProtocol()); -} - /////////////////////////////////////////////////////////////////////////// // senf::RawV6SocketProtocol:: @@ -80,7 +74,7 @@ prefix_ void senf::RawV6SocketProtocol::init_client(int const & protocol) { int sock = ::socket(PF_INET6,SOCK_RAW,protocol); if (sock < 0) - throwErrno(); + SENF_THROW_SYSTEM_EXCEPTION(""); fd(sock); } @@ -92,12 +86,6 @@ senf::RawV6SocketProtocol::init_client(int const & protocol, INet6SocketAddress clientHandle().bind(address); } -prefix_ std::auto_ptr senf::RawV6SocketProtocol::clone() - const -{ - return std::auto_ptr(new RawV6SocketProtocol()); -} - ///////////////////////////////cc.e//////////////////////////////////////// #undef prefix_ //#include "RawINetSocketHandle.mpp"