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 (std::move (clientSocket));
int getBoundPort() const noexcept
bool beginWaitingForSocket(int portNumber, const String &bindAddress=String())
virtual InterprocessConnection * createConnectionObject()=0
InterprocessConnectionServer()
~InterprocessConnectionServer() override
Thread(const String &threadName, size_t threadStackSize=osDefaultStackSize)
bool threadShouldExit() const
bool stopThread(int timeOutMilliseconds)
void signalThreadShouldExit()