psocksxx 1.1.1
Loading...
Searching...
No Matches
lsockstream.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_LSOCKSTREAM_H
21#define PSOCKSXX_LSOCKSTREAM_H
22
23#include <psocksxx/iosockstream.h>
24#include <psocksxx/lsockaddr.h>
25
26
27namespace psocksxx {
28
36 class lsockstream : public iosockstream {
37 public:
38
46 lsockstream() throw( sockexception );
47
51 virtual ~lsockstream() throw();
52
64 void connect( const char * path ) throw( sockexception, socktimeoutexception );
65
77 void connect( const lsockaddr * saddr ) throw( sockexception, socktimeoutexception );
78
79 };
80
81} /* end of namespace psocksxx */
82
83#endif /* !PSOCKSXX_LSOCKSTREAM_H */
84
Input and Output controller class for socket streams.
Definition iosockstream.h:39
Socket address class for local sockets.
Definition lsockaddr.h:36
Local (unix) socket controller class.
Definition lsockstream.h:36
virtual ~lsockstream()
destructor
Definition lsockstream.cpp:39
void connect(const char *path)
connect to a local socket
Definition lsockstream.cpp:47
lsockstream()
constructor
Definition lsockstream.cpp:25
Socket exception.
Definition sockexception.h:35
Socket timeout exception.
Definition socktimeoutexception.h:36