X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FProtocols%2FUN%2FUNDatagramSocketHandle.hh;h=606c43bb4499b094ed06ce9d753d727e981550e3;hb=1ad3873b372da6187b1fbc645bf276287d2efb54;hp=a253105e4b7a4426569744c66f48d0ad3ae1c11e;hpb=0de6c83e2769c7deb2ed3c57d7b26e8cb3fcca04;p=senf.git diff --git a/Socket/Protocols/UN/UNDatagramSocketHandle.hh b/Socket/Protocols/UN/UNDatagramSocketHandle.hh index a253105..606c43b 100644 --- a/Socket/Protocols/UN/UNDatagramSocketHandle.hh +++ b/Socket/Protocols/UN/UNDatagramSocketHandle.hh @@ -1,6 +1,7 @@ -// $Id$ -// // Copyright (C) 2007 +// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) +// Kompetenzzentrum NETwork research (NET) +// David Wagner // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -33,8 +34,6 @@ #include "../../../Socket/BufferingPolicy.hh" #include "../../../Socket/ProtocolClientSocketHandle.hh" - - //#include "UNDatagramSocketHandle.mpp" ///////////////////////////////hh.p//////////////////////////////////////// @@ -50,8 +49,27 @@ namespace senf { ReadablePolicy, WriteablePolicy, SocketBufferingPolicy - >::policy UNDatagramSocket_Policy; + >::policy UNDatagramSocket_Policy; ///< Socket Policy of the Unix Domain Datagram Protocol + + /** \brief Unix Domain Datagram Socket Protocol + + \par Socket Handle typedefs: + \ref UNDatagramClientSocketHandle (ProtocolClientSocketHandle) + \par Policy Interface: (to be checked) + ClientSocketHandle::read(), ClientSocketHandle::readfrom(), + ClientSocketHandle::writeto(), ClientSocketHandle::bind(), ClientSocketHandle::local(), + ClientSocketHandle::rcvbuf(), ClientSocketHandle::sndbuf() + + \par Address Type: + UNAddress + + UNDatagramSocketProtocol provides an datagram protocol socket based on the unix domain + addressing. + + This class is utilized as the protocol class of the ProtocolClientSocketHandle via the + Socket Handle typedefs above. + */ class UNDatagramSocketProtocol : public ConcreteSocketProtocol, public UNProtocol, @@ -69,11 +87,11 @@ namespace senf { /**< \note This member is implicitly called from the ProtocolClientSocketHandle::ProtocolClientSocketHandle() constructor */ - void init_client(UNSocketAddress const & address) const; + void init_client(UNSocketAddress const & address) const; ///< Create client socket and bind /**< Creates a new client socket and bind to the given address. - \param[in] local address to bind to */ + \param[in] address local address to bind to */ /**< \note This member is implicitly called from the ProtocolClientSocketHandle::ProtocolClientSocketHandle() constructor */ @@ -88,10 +106,8 @@ namespace senf { typedef ProtocolClientSocketHandle UNDatagramClientSocketHandle; - typedef MakeSocketPolicy< - UNDatagramSocket_Policy, - UNAddressingPolicy - >::policy UDPv6Socket_Policy; + ///@} + } ///////////////////////////////hh.e//////////////////////////////////////// //#include "UNDatagramSocketHandle.cci"