\ManiaControl\CommunicationCommunication

Class for Communicating with other ManiaControls to call @see \ManiaControl\Communication\CommunicationManager::createCommunication()

Summary

Methods
Properties
Constants
__construct()
createConnection()
call()
tick()
closeConnection()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$socket
$ip
$port
$encryptionPassword
$buffer
$messageQueue
N/A

Properties

$socket

$socket : 

Type

$ip

$ip : 

Type

$port

$port : 

Type

$encryptionPassword

$encryptionPassword : 

Type

$buffer

$buffer : 

Type

$messageQueue

$messageQueue : 

Type

Methods

__construct()

__construct(  $ip,   $port,   $encryptionPassword) 

Parameters

$ip
$port
$encryptionPassword

createConnection()

createConnection() 

Create an Connection

call()

call(callable  $function,   $method, string  $data = "") 

Call an Method Asynchronously

Parameters

callable $function
$method
string $data

tick()

tick() 

Process data on every Tick

closeConnection()

closeConnection() 

Closes the connection, don't call yourself, let it do the Communication Manager