simple-socket library 1.5.0
Loading...
Searching...
No Matches
UnixSocket.h
1#ifndef NET_UnixSocket_h__
2#define NET_UnixSocket_h__
3
4#include "SimpleSocket.h"
5
6namespace NET
7{
9
12 class UnixSocket : public SimpleSocket
13 {
14 public:
16
22 void connect( std::string_view foreignPath);
23
29 void bind( std::string_view localPath);
30
36 std::string getLocalPath() const;
37
43 std::string getForeignPath() const;
44
45 protected:
47 UnixSocket( int type, int protocol);
48
50 explicit UnixSocket( int sockfd);
51
52 // track created socket file
53 std::string m_boundPath;
54 };
55
56} // namespace NET
57
58#endif // NET_UnixSocket_h__
void connect(std::string_view foreignPath)
std::string getForeignPath() const
UnixSocket(int type, int protocol)
allows a subclass to create new socket
Definition UnixSocket.cpp:9
void bind(std::string_view localPath)
std::string getLocalPath() const