libUTL++
LocalSocket.h
1 #pragma once
2 
4 
5 #include <libutl/FDstream.h>
6 #include <libutl/String.h>
7 
9 
10 UTL_NS_BEGIN;
11 
13 
21 
23 class LocalSocket : public FDstream
24 {
26 
27 public:
32  LocalSocket(int fd);
33 
38  LocalSocket(const String& path);
39 
44  void open(const String& path);
45 
46 private:
47  void
48  init()
49  {
50  }
51  void
52  deInit()
53  {
54  close();
55  }
56  void errToEx(const utl::Object* object = nullptr);
57 };
58 
60 
61 UTL_NS_END;
void deInit()
De-initialize UTL++.
#define UTL_CLASS_DECL(DC, BC)
Declaration of standard UTL++ functionality for a non-template class.
Definition: macros.h:688
Character string.
Definition: String.h:31
Local host socket.
Definition: LocalSocket.h:23
void errToEx(const utl::Object *object=nullptr)
Convert libc&#39;s errno to an exception.
Stream with file descriptor.
Definition: FDstream.h:35
Root of UTL++ class hierarchy.
Definition: Object.h:52
void init()
Initialize UTL++.