|
| | Connection (ChildProcessMaster &m, const String &pipeName, int timeout) |
| |
| | InterprocessConnection (bool callbacksOnMessageThread=true, uint32 magicMessageHeaderNumber=0xf2b49e2c) |
| | Creates a connection.
|
| |
| virtual | ~InterprocessConnection () |
| | Destructor.
|
| |
| bool | connectToSocket (const String &hostName, int portNumber, int timeOutMillisecs) |
| | Tries to connect this object to a socket.
|
| |
| bool | connectToPipe (const String &pipeName, int pipeReceiveMessageTimeoutMs) |
| | Tries to connect the object to an existing named pipe.
|
| |
| bool | createPipe (const String &pipeName, int pipeReceiveMessageTimeoutMs, bool mustNotExist=false) |
| | Tries to create a new pipe for other processes to connect to.
|
| |
| void | disconnect () |
| | Disconnects and closes any currently-open sockets or pipes.
|
| |
| bool | isConnected () const |
| | True if a socket or pipe is currently active.
|
| |
| StreamingSocket * | getSocket () const noexcept |
| | Returns the socket that this connection is using (or nullptr if it uses a pipe).
|
| |
| NamedPipe * | getPipe () const noexcept |
| | Returns the pipe that this connection is using (or nullptr if it uses a socket).
|
| |
| String | getConnectedHostName () const |
| | Returns the name of the machine at the other end of this connection.
|
| |
| bool | sendMessage (const MemoryBlock &message) |
| | Tries to send a message to the other end of this connection.
|
| |
| virtual void | connectionMade ()=0 |
| | Called when the connection is first connected.
|
| |
| virtual void | connectionLost ()=0 |
| | Called when the connection is broken.
|
| |
| virtual void | messageReceived (const MemoryBlock &message)=0 |
| | Called when a message arrives.
|
| |