1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-01 03:10:06 +00:00

Add possibility for an InterprocessConnectionServer to bind to a certain network address

This commit is contained in:
hogliux 2016-06-15 12:00:21 +01:00
parent 6810791645
commit 5e0d3fdcbe
2 changed files with 10 additions and 3 deletions

View file

@ -33,13 +33,13 @@ InterprocessConnectionServer::~InterprocessConnectionServer()
}
//==============================================================================
bool InterprocessConnectionServer::beginWaitingForSocket (const int portNumber)
bool InterprocessConnectionServer::beginWaitingForSocket (const int portNumber, const String& bindAddress)
{
stop();
socket = new StreamingSocket();
if (socket->createListener (portNumber))
if (socket->createListener (portNumber, bindAddress))
{
startThread();
return true;