88 bool connectToSocket (
const String& hostName,
124 bool isConnected()
const;
135 String getConnectedHostName()
const;
182 std::unique_ptr<StreamingSocket> socket;
183 std::unique_ptr<NamedPipe> pipe;
184 bool callbackConnectionState =
false;
185 const bool useMessageThread;
186 const uint32 magicMessageHeader;
187 int pipeReceiveMessageTimeout = -1;
192 void deletePipeAndSocket();
193 void connectionMadeInt();
194 void connectionLostInt();
196 bool readNextMessage();
197 int readData (
void*,
int);
199 struct ConnectionThread;
200 std::unique_ptr<ConnectionThread> thread;
201 std::atomic<bool> threadIsRunning {
false };
204 int writeData (
void*,
int);