OLD | NEW |
1 #ifndef COMMUNICATION_H | 1 #ifndef COMMUNICATION_H |
2 #define COMMUNICATION_H | 2 #define COMMUNICATION_H |
3 | 3 |
4 #include <memory> | 4 #include <memory> |
5 #include <sstream> | 5 #include <sstream> |
6 #include <stdexcept> | 6 #include <stdexcept> |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 #include <Windows.h> | 10 #include <Windows.h> |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 | 154 |
155 Pipe(const std::wstring& name, Mode mode); | 155 Pipe(const std::wstring& name, Mode mode); |
156 ~Pipe(); | 156 ~Pipe(); |
157 | 157 |
158 InputBuffer ReadMessage(); | 158 InputBuffer ReadMessage(); |
159 void WriteMessage(OutputBuffer& message); | 159 void WriteMessage(OutputBuffer& message); |
160 | 160 |
161 protected: | 161 protected: |
162 HANDLE pipe; | 162 HANDLE pipe; |
163 }; | 163 }; |
| 164 |
| 165 bool PipeExists(const std::wstring& name); |
164 } | 166 } |
165 | 167 |
166 #endif | 168 #endif |
OLD | NEW |