X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FFileHandle.hh;h=8afbd486fb1af09a0b2ded49a62998cc75b3caf8;hb=1ad3873b372da6187b1fbc645bf276287d2efb54;hp=0091552206f1d4c4c9d894e5e779184f8c771a4f;hpb=22860b5b3420ac5b876690242845595650ff9dc3;p=senf.git diff --git a/Socket/FileHandle.hh b/Socket/FileHandle.hh index 0091552..8afbd48 100644 --- a/Socket/FileHandle.hh +++ b/Socket/FileHandle.hh @@ -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