// $Id$
//
-// Copyright (C) 2008
+// Copyright (C) 2008
// Fraunhofer Institute for Open Communication Systems (FOKUS)
// Competence Center NETwork research (NET), St. Augustin, GERMANY
// Stefan Bund <g0dil@berlios.de>
namespace senf {
/** \brief Socket addressing, BSD style
-
+
BSDSocketAddress is the base class of all BSD \c sockaddr based addressing classes. The \c
sockaddr addressing interface is split into several parts
}
}
\endcode
-
+
All these classes provide a generic \c sockaddr API to interface with legacy \c sockaddr
based code (e.g. the BSD socket API). In this base-class, this interface is read-only, the
derived classes however provide a read-write interface.
/** \brief Output generic socket address
This stream operator will output a generic BSDSocketAddress in a family depending format.
-
+
\related BSDSocketAddress
*/
std::ostream & operator<<(std::ostream & os, BSDSocketAddress const & addr);
While BSDSocketAddress provides read-only generic \c sockaddr access,
GenericBSDSocketAddress allows to store (write) arbitrary socket addresses. (It is
- internally based on \c sockaddr_storage).
+ internally based on \c sockaddr_storage).
To access the stored address, use sockaddr_cast to cast the GenericBSDSocketAddress to the
correct family specific address class.
GenericBSDSocketAddress(const GenericBSDSocketAddress& other);
GenericBSDSocketAddress& operator=(const GenericBSDSocketAddress& other);
-
+
///@}
///////////////////////////////////////////////////////////////////////////
///\name Generic sockaddr interface