mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-22 01:34:21 +00:00
This commit is contained in:
parent
888330af5d
commit
5ed7520324
14 changed files with 270 additions and 46 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue