42 if (socket->createListener (portNumber, bindAddress))
56 if (socket !=
nullptr)
65 return (socket ==
nullptr) ? -1 : socket->getBoundPort();
68 void InterprocessConnectionServer::run()
72 std::unique_ptr<StreamingSocket> clientSocket (socket->waitForNextConnection());
74 if (clientSocket !=
nullptr)
76 newConnection->initialiseWithSocket (clientSocket.release());
InterprocessConnectionServer()
bool stopThread(int timeOutMilliseconds)
void signalThreadShouldExit()
virtual InterprocessConnection * createConnectionObject()=0
~InterprocessConnectionServer() override
bool threadShouldExit() const
bool beginWaitingForSocket(int portNumber, const String &bindAddress=String())
int getBoundPort() const noexcept