1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-22 01:34:21 +00:00
This commit is contained in:
jules 2008-04-16 14:47:34 +00:00
parent 888330af5d
commit 5ed7520324
14 changed files with 270 additions and 46 deletions

View file

@ -153,6 +153,23 @@ bool InterprocessConnection::isConnected() const
&& isThreadRunning();
}
const String InterprocessConnection::getConnectedHostName() const
{
if (pipe != 0)
{
return "localhost";
}
else if (socket != 0)
{
if (! socket->isLocal())
return socket->getHostName();
return "localhost";
}
return String::empty;
}
//==============================================================================
bool InterprocessConnection::sendMessage (const MemoryBlock& message)
{