lsockstream.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_LSOCKSTREAM_H
#define PSOCKSXX_LSOCKSTREAM_H
#include <psocksxx/iosockstream.h>
#include <psocksxx/lsockaddr.h>
namespace psocksxx {
class lsockstream : public iosockstream {
public:
lsockstream() throw( sockexception );
virtual ~lsockstream() throw();
void connect( const char * path ) throw( sockexception, socktimeoutexception );
void connect( const lsockaddr * saddr ) throw( sockexception, socktimeoutexception );
};
} /* end of namespace psocksxx */
#endif /* !PSOCKSXX_LSOCKSTREAM_H */
psocksxx::sockexception
Socket exception.
Definition: sockexception.h:35
psocksxx::iosockstream
Input and Output controller class for socket streams.
Definition: iosockstream.h:37
psocksxx::lsockstream
Local (unix) socket controller class.
Definition: lsockstream.h:36
psocksxx
Definition: iosocks.cpp:23
psocksxx::lsockaddr
Socket address class for local sockets.
Definition: lsockaddr.h:36
psocksxx::lsockstream::~lsockstream
virtual ~lsockstream()
destructor
Definition: lsockstream.cpp:39
psocksxx::socktimeoutexception
Socket timeout exception.
Definition: socktimeoutexception.h:36
psocksxx::lsockstream::lsockstream
lsockstream()
constructor
Definition: lsockstream.cpp:25
psocksxx::lsockstream::connect
void connect(const char *path)
connect to a local socket
Definition: lsockstream.cpp:47