5 // This program is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation; either version 2 of the License, or
8 // (at your option) any later version.
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the
17 // Free Software Foundation, Inc.,
18 // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21 \brief UNProtocol public header */
23 #ifndef HH_UNProtocol_
24 #define HH_UNProtocol_ 1
27 #include "../../../Socket/SocketProtocol.hh"
28 #include "UNAddressing.hh"
29 #include "../../../Socket/ClientSocketHandle.hh"
30 #include "../../../Socket/CommunicationPolicy.hh"
32 //#include "UNProtocol.mpp"
33 ///////////////////////////////hh.p////////////////////////////////////////
37 /// \addtogroup protocol_facets_group
40 /** \brief Protocol facet providing Unix Domain Addressing related API
42 This protocol facet introduces all the socket api protocol members which are related to Unix
45 \todo connect() is only available on stream sockets. We want to access bind() and connect()
46 via the ClientSocketHandle -> see SocketProtocol todo point
49 : public virtual SocketProtocol
52 void connect(UNSocketAddress const & address) const; ///< Connect to remote address
53 /**< \todo make this obsolete by allowing access to the
54 ClientSocketHandle from ConcreateSocketProtocol
55 \param[in] address Address to connect to */
56 void bind(UNSocketAddress const & address) const; ///< Set local socket address
57 /**< \todo make this obsolete by allowing access to the
58 ClientSocketHandle from ConcreateSocketProtocol
59 \param[in] address Address to set */
63 ///////////////////////////////hh.e////////////////////////////////////////
64 //#include "UNProtocol.cci"
65 //#include "UNProtocol.ct"
66 //#include "UNProtocol.cti"
74 // c-file-style: "senf"
75 // indent-tabs-mode: nil
76 // ispell-local-dictionary: "american"
77 // compile-command: "scons -u test"