Constants

SETTING_SOCKET_ENABLED

SETTING_SOCKET_ENABLED

Constants

SETTING_SOCKET_PASSWORD

SETTING_SOCKET_PASSWORD

SETTING_SOCKET_PORT

SETTING_SOCKET_PORT

ENCRYPTION_IV

ENCRYPTION_IV

ENCRYPTION_METHOD

ENCRYPTION_METHOD

Properties

Methods

getUsageInformation()

getUsageInformation() 

Gets Information about the Class, and a List of the Public Method

__construct()

__construct(\ManiaControl\ManiaControl  $maniaControl) 

Create a new Communication Handler Instance

Parameters

\ManiaControl\ManiaControl $maniaControl

createCommunication()

createCommunication(  $ip,   $port,   $encryptionKey) : \ManiaControl\Communication\Communication

Creates a Communication to another ManiaControl

Parameters

$ip
$port
$encryptionKey

Returns

\ManiaControl\Communication\Communication

closeCommunication()

closeCommunication(\ManiaControl\Communication\Communication  $communication) : boolean

Closes a opened Communication Does not necessarily need be called, all connections get destroyed on ManiaControl Shutdown

Parameters

\ManiaControl\Communication\Communication $communication

Returns

boolean

onShutDown()

onShutDown() 

Close all Sockets on maniaControl Shutdown

registerCommunicationListener()

registerCommunicationListener(  $echoName, \ManiaControl\Communication\CommunicationListener  $listener, string  $method) : boolean

Register a new Communication Listener

Parameters

$echoName
\ManiaControl\Communication\CommunicationListener $listener
string $method

Returns

boolean

triggerCommuncationCallback()

triggerCommuncationCallback(  $callbackName) 

Trigger a specific Callback

Parameters

$callbackName

unregisterCommunicationListener()

unregisterCommunicationListener(\ManiaControl\Communication\CommunicationListener  $listener) : boolean

Unregister a Communication Listener

Parameters

\ManiaControl\Communication\CommunicationListener $listener

Returns

boolean

initCommunicationManager()

initCommunicationManager() 

Inits the Communication Manager after ManiaControl Startup

tick()

tick() 

Processes Data on every ManiaControl Tick, don't call this Method

removeCommunicationListener()

removeCommunicationListener(array<mixed,\ManiaControl\Callbacks\Listening>  $listeningsArray, \ManiaControl\Communication\CommunicationListener  $listener) : boolean

Remove the Communication Listener from the given Listeners Array

Parameters

array<mixed,\ManiaControl\Callbacks\Listening> $listeningsArray
\ManiaControl\Communication\CommunicationListener $listener

Returns

boolean

createListeningSocket()

createListeningSocket() 

Creates The Socket