X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FPacketSocketHandle.cc;h=b995959a12026e6942ab130e9f4c74ff8b82e44f;hb=70256cc93f59f5d2c9b3428775a181e5e225bfc5;hp=4dc8791a60e85311c0121949751294fa5f35dd76;hpb=c52cd7d87dbb525c1267aad27391b8b7365dbb57;p=senf.git diff --git a/Socket/PacketSocketHandle.cc b/Socket/PacketSocketHandle.cc index 4dc8791..b995959 100644 --- a/Socket/PacketSocketHandle.cc +++ b/Socket/PacketSocketHandle.cc @@ -38,7 +38,7 @@ #define prefix_ ///////////////////////////////cc.p//////////////////////////////////////// -prefix_ void satcom::lib::PacketProtocol::init_client(SocketType type, int protocol) +prefix_ void senf::PacketProtocol::init_client(SocketType type, int protocol) const { int socktype = SOCK_RAW; @@ -52,13 +52,13 @@ prefix_ void satcom::lib::PacketProtocol::init_client(SocketType type, int proto body().fd(sock); } -prefix_ std::auto_ptr satcom::lib::PacketProtocol::clone() +prefix_ std::auto_ptr senf::PacketProtocol::clone() const { return std::auto_ptr(new PacketProtocol()); } -prefix_ unsigned satcom::lib::PacketProtocol::available() +prefix_ unsigned senf::PacketProtocol::available() const { if (! body().readable()) @@ -69,15 +69,17 @@ prefix_ unsigned satcom::lib::PacketProtocol::available() return l; } -prefix_ bool satcom::lib::PacketProtocol::eof() +prefix_ bool senf::PacketProtocol::eof() const { return false; } -prefix_ void satcom::lib::PacketProtocol::promisc(std::string interface, PromiscMode mode) +prefix_ void senf::PacketProtocol::promisc(std::string interface, PromiscMode mode) const { + /** \bug There are some failures here ... need to investigate */ + // The interface is really stupid: as far as i understand, it is possible to // enable PROMISC and ALLMULTI seperately, however PROMISC is really a superset // of ALLMULTI ... grmpf ... therefore we allways set/reset both to implement sane @@ -100,7 +102,7 @@ prefix_ void satcom::lib::PacketProtocol::promisc(std::string interface, Promisc throw SystemException(errno); } -prefix_ void satcom::lib::PacketProtocol::do_mc_i(std::string interface, +prefix_ void senf::PacketProtocol::do_mc_i(std::string interface, detail::LLAddressCopier const & copier, bool add) const { @@ -123,5 +125,5 @@ prefix_ void satcom::lib::PacketProtocol::do_mc_i(std::string interface, // Local Variables: // mode: c++ -// c-file-style: "satcom" +// c-file-style: "senf" // End: