libsocket
unixbase.hpp
Go to the documentation of this file.
1 #ifndef LIBSOCKET_UNIXBASE_H_0B648A3E27324425A6B7B9F7B262E7D1
2 #define LIBSOCKET_UNIXBASE_H_0B648A3E27324425A6B7B9F7B262E7D1
3 #include <string>
4 
5 #include "socket.hpp"
6 
7 #include "libunixsocket.h"
8 
14 /*
15  The committers of the libsocket project, all rights reserved
16  (c) 2012, dermesser <lbo@spheniscida.de>
17 
18  Redistribution and use in source and binary forms, with or without
19  modification, are permitted provided that the following conditions are met:
20 
21  1. Redistributions of source code must retain the above copyright notice,
22  this list of conditions and the following disclaimer.
23  2. Redistributions in binary form must reproduce the above copyright notice,
24  this list of conditions and the following disclaimer in the documentation
25  and/or other materials provided with the distribution.
26 
27  THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS “AS IS” AND ANY
28  EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
29  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
30  DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY
31  DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
32  (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
33  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
34  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
35  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
36  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
37 
38 */
39 
40 namespace libsocket {
41 using std::string;
42 
53 class unix_socket : public virtual socket {
54  protected:
55  string _path;
56 
58  public:
59  unix_socket();
60 
61  string get_path(void);
62 };
66 } // namespace libsocket
67 #endif
Contains libsocket elements.
Definition: dgramclient.hpp:41
Base class for all UNIX socket classes.
Definition: unixbase.hpp:53
socket is the base class of every other libsocket++ object.
Definition: socket.hpp:71
string get_path(void)
Returns the path we're bound or connected to.
Definition: unixbase.cpp:50