, EV_ERR = detail::FdManager::EV_ERR ///< transport error
, EV_ALL = (detail::FdManager::EV_READ
| detail::FdManager::EV_WRITE
- | detail::FdManager::EV_PRIO) ///< register all events
+ | detail::FdManager::EV_PRIO) ///< register all events (read, prio and write)
};
///////////////////////////////////////////////////////////////////////////
friend class detail::FileDispatcher;
};
- int retrieve_filehandle(int fd);
+ /** \brief Get file descriptor from handle object
+ This function will query the \a handle for it's file descriptor. The real implementation
+ must be provided by a freestanding function \c retrieve_filehandle(Handle const & h) within
+ the namespace of \a Handle.
+ */
+ template <class Handle>
+ int get_descriptor(Handle const & handle);
}}
///////////////////////////////hh.e////////////////////////////////////////