Constants

MAX_REQUEST_SIZE

MAX_REQUEST_SIZE

MAX_RESPONSE_SIZE

MAX_RESPONSE_SIZE

Properties

$received

$received : 

Type

$sent

$sent : 

Type

$socket

$socket : 

Type

$readTimeout

$readTimeout : 

Type

$writeTimeout

$writeTimeout : 

Type

$requestHandle

$requestHandle : 

Type

$callbacksBuffer

$callbacksBuffer : 

Type

$multicallBuffer

$multicallBuffer : 

Type

$lastNetworkActivity

$lastNetworkActivity : 

Type

Methods

__construct()

__construct(string  $host, integer  $port, integer  $timeout = 5) 

Parameters

string $host
integer $port
integer $timeout

Timeout when opening connection

__destruct()

__destruct() 

setTimeouts()

setTimeouts(integer  $read, integer  $write) 

Change timeouts

Parameters

integer $read

read timeout (in ms), 0 to leave unchanged

integer $write

write timeout (in ms), 0 to leave unchanged

getIdleTime()

getIdleTime() : integer

Returns

integer —

Network idle time in seconds

terminate()

terminate() 

query()

query(string  $method, array<mixed,mixed>  $args = array()) : mixed

Parameters

string $method
array<mixed,mixed> $args

Throws

\Maniaplanet\DedicatedServer\Xmlrpc\MessageException

Returns

mixed

addCall()

addCall(string  $method, array<mixed,mixed>  $args) 

Parameters

string $method
array<mixed,mixed> $args

multiquery()

multiquery() : mixed

Returns

mixed

getCallbacks()

getCallbacks() : array<mixed,mixed>

Returns

array<mixed,mixed>

connect()

connect(string  $host, integer  $port, integer  $timeout) 

Parameters

string $host
integer $port
integer $timeout

Throws

\Maniaplanet\DedicatedServer\Xmlrpc\TransportException

assertConnected()

assertConnected() 

Throws

\Maniaplanet\DedicatedServer\Xmlrpc\TransportException

flush()

flush(boolean  $waitResponse = false) : mixed

Parameters

boolean $waitResponse

Throws

\Maniaplanet\DedicatedServer\Xmlrpc\FaultException

Returns

mixed

readMessage()

readMessage() : array<mixed,mixed>

Throws

\Maniaplanet\DedicatedServer\Xmlrpc\TransportException
\Maniaplanet\DedicatedServer\Xmlrpc\MessageException

Returns

array<mixed,mixed>

writeMessage()

writeMessage(string  $xml) 

Parameters

string $xml

Throws

\Maniaplanet\DedicatedServer\Xmlrpc\TransportException

read()

read(integer  $size) : boolean|string

Parameters

integer $size

Returns

boolean|string

write()

write(string  $data) : boolean

Parameters

string $data

Returns

boolean

onIoFailure()

onIoFailure(string  $when) 

Parameters

string $when

Throws

\Maniaplanet\DedicatedServer\Xmlrpc\TransportException