4 // Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS)
5 // Kompetenzzentrum fuer Satelitenkommunikation (SatCom)
6 // Stefan Bund <stefan.bund@fokus.fraunhofer.de>
8 // This program is free software; you can redistribute it and/or modify
9 // it under the terms of the GNU General Public License as published by
10 // the Free Software Foundation; either version 2 of the License, or
11 // (at your option) any later version.
13 // This program is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 // GNU General Public License for more details.
18 // You should have received a copy of the GNU General Public License
19 // along with this program; if not, write to the
20 // Free Software Foundation, Inc.,
21 // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 \todo what about OOB data?
27 \todo Implement IP_RECVERR / MSG_ERRQUEUE. This should be placed
28 into an additional protocol class since IP_RECVERR is only valid
29 for SOCK_DGRAM (UDP) and not SOCK_STREAM (TCP) sockets
32 #ifndef HH_INetProtocol_
33 #define HH_INetProtocol_ 1
36 #include "SocketProtocol.hh"
37 #include "INetAddressing.hh"
38 #include "ClientSocketHandle.hh"
39 #include "CommunicationPolicy.hh"
41 //#include "INetProtocol.mpp"
42 ///////////////////////////////hh.p////////////////////////////////////////
49 \todo Is it safe, not to allow setting the interface index on
50 add/drop? what does it do (especially if the local addres is
51 given ?). What have I been thinking here ???
53 \todo move all multicast-methods into an extra
54 IPv4MulticastProtocol class
57 : public virtual SocketProtocol
60 void connect(INet4Address const & address) const;
61 void bind(INet4Address const & address) const;
63 unsigned mcTTL() const;
64 void mcTTL(unsigned value) const;
67 void mcLoop(bool value) const;
69 void mcAddMembership(INet4Address const & mcAddr) const;
70 void mcAddMembership(INet4Address const & mcAddr, INet4Address const & localAddr) const;
72 void mcDropMembership(INet4Address const & mcAddr) const;
73 void mcDropMembership(INet4Address const & mcAddr, INet4Address const & localAddr) const;
75 void mcIface(std::string iface = std::string()) const;
79 : public virtual SocketProtocol
84 ///////////////////////////////hh.e////////////////////////////////////////
85 //#include "INetProtocol.cci"
86 //#include "INetProtocol.ct"
87 //#include "INetProtocol.cti"
93 // c-file-style: "senf"