psocksxx 1.1.1
Loading...
Searching...
No Matches
lsockaddr.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_LSOCKADDR_H
21#define PSOCKSXX_LSOCKADDR_H
22
23#include <psocksxx/sockaddr.h>
24#include <sys/un.h>
25
26
27namespace psocksxx {
28
36 class lsockaddr : public sockaddr, public sockaddr_un {
37 public:
38
47 lsockaddr( const char * path ) throw();
48
49 // abstract method implementations
50 socklen_t size() const throw();
51 ::sockaddr* psockaddr() const throw();
52
53 };
54
55} /* end of namespace psocksxx */
56
57#endif /* !PSOCKSXX_LSOCKADDR_H */
58
Socket address class for local sockets.
Definition lsockaddr.h:36
socklen_t size() const
get POSIX socket address size
Definition lsockaddr.cpp:38
::sockaddr * psockaddr() const
get a POSIX socket address structure
Definition lsockaddr.cpp:43
Socket address base class.
Definition sockaddr.h:35