psocksxx 1.1.1
Loading...
Searching...
No Matches
iosocks.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_IOSOCKS_H
21#define PSOCKSXX_IOSOCKS_H
22
23#include <psocksxx/sockstreambuf.h>
24
25#include <ios>
26
27
28namespace psocksxx {
29
36 class iosocks : public virtual std::ios {
37 public:
38
45 virtual ~iosocks() throw() { };
46
56 bool timedout() const throw();
57
70 const timeval * timeout( time_t sec, suseconds_t usec ) throw();
71
81 void * clear_timeout() throw();
82
83 protected:
84
92 iosocks() throw() { }
93
94 };
95
96} /* end of namespace psocksxx */
97
98#endif /* !PSOCKSXX_IOSOCKS_H */
99
base class for socket stream controller classes
Definition iosocks.h:36
virtual ~iosocks()
destructor
Definition iosocks.h:45
bool timedout() const
get the timed-out status flag value
Definition iosocks.cpp:25
void * clear_timeout()
clear the timeout value
Definition iosocks.cpp:45
const timeval * timeout(time_t sec, suseconds_t usec)
set the timeout value for stream communications
Definition iosocks.cpp:35