psocksxx  1.0.0
iosockstream.h
1 /*
2 * psocksxx - A C++ wrapper for POSIX sockets
3 * Copyright (C) 2013 Uditha Atukorala
4 *
5 * This software library is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU Lesser General Public License as published by
7 * the Free Software Foundation; either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This software library 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 Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with this software library. If not, see <http://www.gnu.org/licenses/>.
17 *
18 */
19 
20 #ifndef PSOCKSXX_IOSOCKSTREAM_H
21 #define PSOCKSXX_IOSOCKSTREAM_H
22 
23 #include <psocksxx/isockstream.h>
24 #include <psocksxx/osockstream.h>
25 
26 
27 namespace psocksxx {
28 
37  class iosockstream :
38  public isockstream,
39  public osockstream {
40 
41  public:
42 
50  iosockstream( sockstreambuf * ssb ) throw() :
51  isockstream( ssb ), osockstream( ssb ) {
52  // constructor
53  }
54 
58  virtual ~iosockstream() throw() {
59  // destructor
60  }
61 
70  bool timedout() const throw() {
72  }
73 
74  };
75 
76 } /* end of namespace psocksxx */
77 
78 #endif /* !PSOCKSXX_IOSOCKSTREAM_H */
79 
virtual ~iosockstream()
destructor
Definition: iosockstream.h:58
Input and Output controller class for socket streams.
Definition: iosockstream.h:37
bool timedout() const
get the timed-out status for this stream
Definition: iosockstream.h:70
Socket stream buffer class.
Definition: sockstreambuf.h:48
Definition: iosocks.cpp:23
osockstream(sockstreambuf *ssb)
constructor
Definition: osockstream.cpp:25
Output controller class for socket streams.
Definition: osockstream.h:36
isockstream(sockstreambuf *ssb)
constructor
Definition: isockstream.cpp:25
bool timedout() const
get the timed-out status flag value
Definition: iosocks.cpp:25
Input controller class for socket streams.
Definition: isockstream.h:36
iosockstream(sockstreambuf *ssb)
constructor
Definition: iosockstream.h:50