\brief ClientSocketHandle public header
*/
-#ifndef HH_ClientSocketHandle_
-#define HH_ClientSocketHandle_ 1
+#ifndef HH_SENF_Socket_ClientSocketHandle_
+#define HH_SENF_Socket_ClientSocketHandle_ 1
// Custom includes
#include <boost/call_traits.hpp>
/** This class will probably only be usable, if the \c CommunicationPolicy is \c
ConnectedCommunicationPolicy and the \c AddressingPolicy is not \c
NoAddressingPolicy. */
- typedef ServerSocketHandle<SPolicy> ServerSocketHandle;
+ typedef ServerSocketHandle<SPolicy> ServerHandle;
///////////////////////////////////////////////////////////////////////////
///\name Structors and default members
\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() */