X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FFileHandle.hh;h=d45020a3469cc67ee432e46ed44c4d80a9c827e3;hb=51044eb18f034c1a059ffe2fb109a422c1cbe251;hp=0091552206f1d4c4c9d894e5e779184f8c771a4f;hpb=22860b5b3420ac5b876690242845595650ff9dc3;p=senf.git diff --git a/Socket/FileHandle.hh b/Socket/FileHandle.hh index 0091552..d45020a 100644 --- a/Socket/FileHandle.hh +++ b/Socket/FileHandle.hh @@ -1,9 +1,9 @@ // $Id$ // // Copyright (C) 2006 -// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) -// Kompetenzzentrum fuer Satelitenkommunikation (SatCom) -// Stefan Bund +// 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 // it under the terms of the GNU General Public License as published by @@ -182,6 +182,8 @@ namespace senf { \c new. To configure the FileHandle behavior, A derived class may provide any class derived from FileBody here. */ + explicit FileHandle(FileBody::ptr body); + FileBody & body(); ///< Access body FileBody const & body() const; ///< Access body in const context static FileBody & body(FileHandle & handle); ///< Access body of another FileHandle instance @@ -192,6 +194,8 @@ namespace senf { private: FileBody::ptr body_; + + friend class FileBody; }; /** \brief Adapt FileHandle to senf::Scheduler