prefix_ std::string senf::ClientSocketHandle<SPolicy>::read(unsigned limit)
{
std::string rv;
- this->read(rv,limit);
+ this->read(rv, limit);
return rv;
}
{
std::string rv;
boost::value_initialized<typename SPolicy::AddressingPolicy::Address> addr;
- this->readfrom(rv,addr.data(),limit);
- return std::make_pair(rv,addr.data());
+ this->readfrom(rv, addr.data(), limit);
+ return std::make_pair(rv, addr.data());
}
template <class SPolicy>
template <class SPolicy>
prefix_ typename SPolicy::AddressingPolicy::Address
senf::ClientSocketHandle<SPolicy>::peer()
+ const
{
typename SPolicy::AddressingPolicy::Address addr;
this->peer(addr);
template <class SPolicy>
prefix_ void senf::ClientSocketHandle<SPolicy>::
peer(typename SPolicy::AddressingPolicy::Address & addr)
+ const
{
- SPolicy::AddressingPolicy::peer(*this,addr);
+ SPolicy::AddressingPolicy::peer(*this, addr);
}
// senf::ClientSocketHandle<SPolicy>::local
template <class SPolicy>
prefix_ typename SPolicy::AddressingPolicy::Address
senf::ClientSocketHandle<SPolicy>::local()
+ const
{
typename SPolicy::AddressingPolicy::Address addr;
this->local(addr);
template <class SPolicy>
prefix_ void senf::ClientSocketHandle<SPolicy>::
local(typename SPolicy::AddressingPolicy::Address & addr)
+ const
{
SPolicy::AddressingPolicy::local(*this,addr);
}
template <class SPolicy>
prefix_ void senf::ClientSocketHandle<SPolicy>::connect(AddressParam addr)
+ const
{
- SPolicy::AddressingPolicy::connect(*this,addr);
+ SPolicy::AddressingPolicy::connect(*this, addr);
}
// senf::ClientSocketHandle<SPolicy>::bind
template <class SPolicy>
prefix_ void senf::ClientSocketHandle<SPolicy>::
bind(typename boost::call_traits<typename SPolicy::AddressingPolicy::Address>::param_type addr)
+ const
{
- SPolicy::AddressingPolicy::bind(*this,addr);
+ SPolicy::AddressingPolicy::bind(*this, addr);
}
////////////////////////////////////////
prefix_ void senf::ClientSocketHandle<SPolicy>::state(SocketStateMap & map, unsigned lod)
{
map["handle"] = prettyName(typeid(*this));
- this->body().state(map,lod);
+ this->body().state(map, lod);
}
template <class SPolicy>
\throws senf::SystemException
*/
- void connect (AddressParam addr);
+ void connect (AddressParam addr) const;
/** \brief Set local address
For addressable protocols (AddressingPolicy is not NoAddressingPolicy), bind() will set
the local address of the socket.
- \param[in] addr Local socket address to asign
+ \param[in] addr Local socket address to assign
\throws senf::SystemException
*/
- void bind (AddressParam addr);
+ void bind (AddressParam addr) const;
/** \brief Query remote address
\throws senf::SystemException
*/
- Address peer ();
- void peer (Address & addr);
+ Address peer () const;
+ void peer (Address & addr) const;
///< Query remote address
/**< \see \ref peer() */
\throws senf::SystemException
*/
- Address local ();
- void local (Address & addr);
+ Address local () const;
+ void local (Address & addr) const;
///< Query local address
/**< \see \ref local() */