Property | Type | Description | |
---|---|---|---|
$application | The application object | ||
$lastId | integer | The latest id available | |
$receiver | The receiver object |
Property | Type | Description | |
---|---|---|---|
$sendLaterMessagesBuffer | string | The buffer of messages to be sent |
Method | Description | |
---|---|---|
__construct ( |
The constructor | |
send ( MessageInterface $message ) : void | Send a message | |
tick ( ) : void | Check and send queued messages | |
waitReturn ( MessageInterface $message ) : mixed | Send a message and wait for the return |
Method | Description | |
---|---|---|
getLazarusJson ( MessageInterface $message ) : String | Get a valid Lazarus RPC JSON String | |
out ( String $text ) : void | Print debug information | |
processMessage ( MessageInterface $message ) : void | Process a message before sending - Useful to incrementing IDs | |
writeOnStream ( ) : void | Write on stdin stream |
public __construct ( |
||
$application | ||
$receiver | ||
return | void |
protected getLazarusJson ( MessageInterface $message ) : String | ||
$message | MessageInterface | Message to send |
return | String | Lazarus JSON string |
protected processMessage ( MessageInterface $message ) : void | ||
$message | MessageInterface | Message |
return | void |
public waitReturn ( MessageInterface $message ) : mixed | ||
$message | MessageInterface | |
return | mixed | The return of the message |
protected writeOnStream ( ) : void | ||
return | void |
public Application,Gui $application | ||
return |
protected string $sendLaterMessagesBuffer | ||
return | string |