iosocks.h
/*
* psocksxx - A C++ wrapper for POSIX sockets
* Copyright (C) 2013 Uditha Atukorala
*
* This software library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This software library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this software library. If not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef PSOCKSXX_IOSOCKS_H
#define PSOCKSXX_IOSOCKS_H
#include <psocksxx/sockstreambuf.h>
#include <ios>
namespace psocksxx {
class iosocks : public virtual std::ios {
public:
virtual ~iosocks() throw() { };
bool timedout() const throw();
const timeval * timeout( time_t sec, suseconds_t usec ) throw();
void * clear_timeout() throw();
protected:
iosocks() throw() { }
};
} /* end of namespace psocksxx */
#endif /* !PSOCKSXX_IOSOCKS_H */
psocksxx::iosocks
base class for socket stream controller classes
Definition: iosocks.h:36
psocksxx::iosocks::~iosocks
virtual ~iosocks()
destructor
Definition: iosocks.h:45
psocksxx::iosocks::timedout
bool timedout() const
get the timed-out status flag value
Definition: iosocks.cpp:25
psocksxx::iosocks::clear_timeout
void * clear_timeout()
clear the timeout value
Definition: iosocks.cpp:45
psocksxx::iosocks::timeout
const timeval * timeout(time_t sec, suseconds_t usec)
set the timeout value for stream communications
Definition: iosocks.cpp:35