NEW FILE HEADER / COPYRIGHT FORMAT
[senf.git] / Socket / Protocols / INet / RawInetProtocol.hh
1 // Copyright (C) 2007 
2 // Fraunhofer Institute for Open Communication Systems (FOKUS) 
3 // Kompetenzzentrum NETwork research (NET)
4 //     David Wagner <dw6@berlios.de>
5 //
6 // This program is free software; you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License as published by
8 // the Free Software Foundation; either version 2 of the License, or
9 // (at your option) any later version.
10 //
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 // GNU General Public License for more details.
15 //
16 // You should have received a copy of the GNU General Public License
17 // along with this program; if not, write to the
18 // Free Software Foundation, Inc.,
19 // 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
20 #ifndef RAWINETPROTOCOL_HH_
21 #define RAWINETPROTOCOL_HH_
22
23 // Custom includes
24 #include "INetAddressing.hh"
25 #include "INetProtocol.hh"
26 #include "../../../Socket/Protocols/BSDSocketProtocol.hh"
27 #include "../../../Socket/FramingPolicy.hh"
28 #include "../../../Socket/CommunicationPolicy.hh"
29 #include "../../../Socket/ReadWritePolicy.hh"
30 #include "../../../Socket/BufferingPolicy.hh"
31 #include "../../../Socket/ProtocolClientSocketHandle.hh"
32
33 namespace senf {
34
35     /// \addtogroup protocol_facets_group
36     /// @{
37
38     /** \brief Protocol facat to support RAW operations upon IPv4/6 
39
40         This protocol facet provides all those protocol functions,
41         which are available on a PF_INET[6]/RAW socket.
42         
43      */
44     class RawInetProtocol
45         : public virtual SocketProtocol
46     {
47     public:
48         ///\name Abstract Interface Implementation
49         ///@{
50
51         unsigned available() const;
52         bool eof() const;
53
54         ///@}
55     };
56
57     /// @}
58 }
59
60 #endif /*RAWINETPROTOCOL_HH_*/