TCPSocketProtocol.hh
Go to the documentation of this file.
1 //
2 // Copyright (c) 2020 Fraunhofer Institute for Applied Information Technology (FIT)
3 // Network Research Group (NET)
4 // Schloss Birlinghoven, 53754 Sankt Augustin, GERMANY
5 // Contact: support@wiback.org
6 //
7 // This file is part of the SENF code tree.
8 // It is licensed under the 3-clause BSD License (aka New BSD License).
9 // See LICENSE.txt in the top level directory for details or visit
10 // https://opensource.org/licenses/BSD-3-Clause
11 //
12 
13 
18 #ifndef HH_SENF_Socket_Protocols_INet_TCPSocketProtocol_
19 #define HH_SENF_Socket_Protocols_INet_TCPSocketProtocol_ 1
20 
21 // Custom includes
22 #include "INetSocketProtocol.hh"
23 
24 //#include "TCPSocketProtocol.mpp"
25 //-/////////////////////////////////////////////////////////////////////////////////////////////////
26 
27 namespace senf {
28 
30  //\{
31 
38  : public virtual INetSocketProtocol
39  {
40  public:
41  bool nodelay() const;
42  void nodelay(bool value) const;
43 
50  unsigned siocinq() const;
51  unsigned siocoutq() const;
52 
54  void shutdown(ShutType type) const;
55 
57  //\{
58 
59  void close();
60  unsigned available() const;
61  bool eof() const;
62 
63  //\}
64  };
65 
66  //\}
67 }
68 
69 //-/////////////////////////////////////////////////////////////////////////////////////////////////
70 //#include "TCPSocketProtocol.cci"
71 //#include "TCPSocketProtocol.ct"
72 //#include "TCPSocketProtocol.cti"
73 #endif
74 
75 
76 // Local Variables:
77 // mode: c++
78 // fill-column: 100
79 // c-file-style: "senf"
80 // indent-tabs-mode: nil
81 // ispell-local-dictionary: "american"
82 // compile-command: "scons -u test"
83 // comment-column: 40
84 // End:
unsigned siocinq() const
Return current size of the input queue.
u8 type
Generic addressing type independent INet protocol facet.
unsigned available() const
Return (maximum) number of bytes available for reading without < blocking.
IPv[46]Protocol public header.
Protocol facet to support TCP operations.
void close()
Close socket.
bool nodelay() const
Check current SO_NODELAY status.
bool eof() const
Check for end-of-file condition.
void shutdown(ShutType type) const
unsigned siocoutq() const
Return current size of the output queue.