X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FSocket%2FProtocols%2FBSDSocketAddress.hh;h=cc9694a2d9abc56696d102d64bfd274610117eaf;hb=d0c31526ac12869eed085891e3ae13e8b21072e6;hp=2040513e11bea285fe93c49acbfc0dfa0376c6ad;hpb=601d1f509f5bb24df167a4dd5a20da67a0af9af8;p=senf.git diff --git a/senf/Socket/Protocols/BSDSocketAddress.hh b/senf/Socket/Protocols/BSDSocketAddress.hh index 2040513..cc9694a 100644 --- a/senf/Socket/Protocols/BSDSocketAddress.hh +++ b/senf/Socket/Protocols/BSDSocketAddress.hh @@ -1,6 +1,6 @@ // $Id$ // -// Copyright (C) 2008 +// Copyright (C) 2008 // Fraunhofer Institute for Open Communication Systems (FOKUS) // Competence Center NETwork research (NET), St. Augustin, GERMANY // Stefan Bund @@ -30,17 +30,17 @@ #include #include #include -#include "../../Utils/safe_bool.hh" +#include #include #include //#include "BSDSocketAddress.mpp" -///////////////////////////////hh.p//////////////////////////////////////// +//-///////////////////////////////////////////////////////////////////////////////////////////////// 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 @@ -66,7 +66,7 @@ namespace senf { } } \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. @@ -99,15 +99,15 @@ namespace senf { each typed derived class (e.g. INet4Address::addressFamily) */ - /////////////////////////////////////////////////////////////////////////// + //-//////////////////////////////////////////////////////////////////////// ///\name Generic sockaddr interface - ///\{ + //\{ struct sockaddr const * sockaddr_p() const; socklen_t socklen() const; socklen_t const * socklen_p() const; - ///\} + //\} protected: BSDSocketAddress(socklen_t len, short family); @@ -153,7 +153,7 @@ namespace senf { /** \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); @@ -162,7 +162,7 @@ namespace senf { 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. @@ -173,9 +173,9 @@ namespace senf { : public BSDSocketAddress { public: - /////////////////////////////////////////////////////////////////////////// + //-//////////////////////////////////////////////////////////////////////// ///\name Structors and default members - ///@{ + //\{ GenericBSDSocketAddress(); GenericBSDSocketAddress(BSDSocketAddress const & other); @@ -183,18 +183,18 @@ namespace senf { GenericBSDSocketAddress(const GenericBSDSocketAddress& other); GenericBSDSocketAddress& operator=(const GenericBSDSocketAddress& other); - - ///@} - /////////////////////////////////////////////////////////////////////////// + + //\} + //-//////////////////////////////////////////////////////////////////////// ///\name Generic sockaddr interface - ///\{ + //\{ struct sockaddr const * sockaddr_p() const; struct sockaddr * sockaddr_p(); using BSDSocketAddress::socklen_p; - ///\} + //\} protected: @@ -204,7 +204,7 @@ namespace senf { } -///////////////////////////////hh.e//////////////////////////////////////// +//-///////////////////////////////////////////////////////////////////////////////////////////////// #include "BSDSocketAddress.cci" //#include "BSDSocketAddress.ct" //#include "BSDSocketAddress.cti"