X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FClientSocketHandle.hh;h=38e7ea0388adf701bbacd3bad337baf3b180994f;hb=c13146edc1b57cc60f102bcfd1a7a602ecec261f;hp=368e3cdb3d1c86bd0015beaaacbd9fcaa9b37893;hpb=11e54a3241bf7c58b4b418a24abea04d12a683aa;p=senf.git diff --git a/Socket/ClientSocketHandle.hh b/Socket/ClientSocketHandle.hh index 368e3cd..38e7ea0 100644 --- a/Socket/ClientSocketHandle.hh +++ b/Socket/ClientSocketHandle.hh @@ -79,13 +79,6 @@ namespace senf { typelist of Poclicy classes which can be accessed. You use protocol() to access a protocol class. \c Policies can of course be underspecified or even empty. - \idea add more flexible read/write members for a) boost::arrays and arrays of other types b) - std::vector (which uses contiguous memory ..) c) other random-access containers (we should - use some configurable trait class to identify containers with contiguous storage). Probably - we should just use a generic Boost.Range interface. Here we again come to the point: make - all except the most basic members be non-member algorithms ? this would make the - configuration of such extenden members more flexible. - \see \ref policy_group \n \ref protocol_group */ @@ -116,11 +109,14 @@ namespace senf { ///\name Structors and default members ///@{ - // no default constructor + // default default constructor // default copy constructor // default copy assignment // default destructor + // here to implement + ClientSocketHandle(); + // conversion constructors template ClientSocketHandle(ClientSocketHandle other, @@ -181,14 +177,15 @@ namespace senf { \param[in/out] range Range to store data in \returns past-the-end iterator pointer to after the last read character - \see \ref read() */ + \see \ref read() \n + Boost.Range */ template typename boost::range_iterator::type read (ForwardWritableRange & range); ///< Read data into range - /**< \see - read(ForwardWritableRange const &) \n - read() */ + /**< \see read(ForwardWritableRange const &) \n + read() \n + Boost.Range */ template void read (Sequence & container, unsigned limit); ///< Read data into container @@ -243,14 +240,15 @@ namespace senf { received \returns past-the-end iterator pointer to after the last read character - \see \ref readfrom() */ + \see \ref readfrom() \n + Boost.Range */ template typename boost::range_iterator::type readfrom (ForwardWritableRange & range, Address & from); ///< Read data into range - /**< \see - readfrom(ForwardWritableRange const&,Address&) \n - readfrom() */ + /**< \see readfrom(ForwardWritableRange const&,Address&) \n + readfrom() \n + Boost.Range */ template void readfrom (Sequence & container, Address & from, unsigned limit); ///< Read data into container @@ -303,7 +301,8 @@ namespace senf { /**< \param[in] start beginning of area to write \param[in] end past-the-end pointer to area to write \returns past-the-end pointer after last byte written - \see \ref write() */ + \see \ref write() \n + Boost.Range */ /** \brief Write data to unconnected socket @@ -332,7 +331,8 @@ namespace senf { \param[in] start address of buffer to write \param[in] end past-the-end pointer after data to write \returns past-the-end iterator after last byte written - \see \ref writeto() */ + \see \ref writeto() \n + Boost.Range */ /////////////////////////////////////////////////////////////////////////// ///\name Addressing