// $Id$
//
// Copyright (C) 2006
-// Fraunhofer Institute for Open Communication Systems (FOKUS)
-// Competence Center NETwork research (NET), St. Augustin, GERMANY
+// Fraunhofer Institute for Open Communication Systems (FOKUS)
+// Competence Center NETwork research (NET), St. Augustin, GERMANY
// Stefan Bund <g0dil@berlios.de>
//
// This program is free software; you can redistribute it and/or modify
\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() */
void state(SocketStateMap & map, unsigned lod=0);
std::string dumpState(unsigned lod=0);
+ unsigned available();
+
protected:
ClientSocketHandle(FileHandle other, bool isChecked);
explicit ClientSocketHandle(std::auto_ptr<SocketBody> body);
private:
- unsigned available();
-
friend class senf::ServerSocketHandle<SPolicy>;
};