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