X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FSocketProtocol.cci;h=372ef3eccf3bc674ac431b3f34f295b034a599ee;hb=81f84badf27b66dbadec9890646ca1193e998505;hp=7c5f2ead44fe20982f87cf2d4b312047b0267b15;hpb=f73fa16ed5abdce272ac77f8b8b9ef2b9922c266;p=senf.git diff --git a/Socket/SocketProtocol.cci b/Socket/SocketProtocol.cci index 7c5f2ea..372ef3e 100644 --- a/Socket/SocketProtocol.cci +++ b/Socket/SocketProtocol.cci @@ -1,8 +1,8 @@ // $Id$ // // Copyright (C) 2006 -// Fraunhofer Institute for Open Communication Systems (FOKUS) -// Competence Center NETwork research (NET), St. Augustin, GERMANY +// Fraunhofer Institute for Open Communication Systems (FOKUS) +// Competence Center NETwork research (NET), St. Augustin, GERMANY // Stefan Bund // // This program is free software; you can redistribute it and/or modify @@ -27,7 +27,7 @@ //#include "SocketProtocol.ih" // Custom includes -#include +#include "../Utils/senfassert.hh" #define prefix_ inline ///////////////////////////////cci.p/////////////////////////////////////// @@ -50,24 +50,16 @@ prefix_ int senf::SocketProtocol::fd() prefix_ void senf::SocketProtocol::fd(int fd) const { - BOOST_ASSERT(! body().valid()); + SENF_ASSERT(! body().valid()); body().fd(fd); } prefix_ senf::SocketProtocol::SocketProtocol() - : body_(0) {} prefix_ senf::SocketProtocol::~SocketProtocol() {} -prefix_ senf::SocketBody & senf::SocketProtocol::body() - const -{ - BOOST_ASSERT( body_ ); - return *body_; -} - ///////////////////////////////cci.e/////////////////////////////////////// #undef prefix_