mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Added a function to the InterprocessConnectionServer class to get the bound port number
This commit is contained in:
parent
768163f75c
commit
ff6d01bc25
3 changed files with 16 additions and 2 deletions
|
|
@ -58,6 +58,11 @@ void InterprocessConnectionServer::stop()
|
|||
socket = nullptr;
|
||||
}
|
||||
|
||||
int InterprocessConnectionServer::getBoundPort() const noexcept
|
||||
{
|
||||
return (socket == nullptr) ? -1 : socket->getBoundPort();
|
||||
}
|
||||
|
||||
void InterprocessConnectionServer::run()
|
||||
{
|
||||
while ((! threadShouldExit()) && socket != nullptr)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue