Re: Dedicated Server API Client Communication
Posted: 19 Aug 2014, 12:38
i don't really understand what you want to say, sorryw1lla wrote:where it seems to be based on everyplayerconnect aswell as certain callbacks.
i don't really understand what you want to say, sorryw1lla wrote:where it seems to be based on everyplayerconnect aswell as certain callbacks.
Code: Select all
[13-Jul-2014 15:25:29 UTC] [ManiaControl EXCEPTION]: Connection timed out while reading header
Class: Maniaplanet\DedicatedServer\Xmlrpc\TransportException
Trace:
#0: Maniaplanet\DedicatedServer\Xmlrpc\GbxRemote->onIoFailure(string(while reading header)) in File core/Libs/Maniaplanet/DedicatedServer/Xmlrpc/GbxRemote.php on Line 225
#1: Maniaplanet\DedicatedServer\Xmlrpc\GbxRemote->readMessage() in File core/Libs/Maniaplanet/DedicatedServer/Xmlrpc/GbxRemote.php on Line 200
#2: Maniaplanet\DedicatedServer\Xmlrpc\GbxRemote->flush(boolean(1)) in File core/Libs/Maniaplanet/DedicatedServer/Xmlrpc/GbxRemote.php on Line 130
#3: Maniaplanet\DedicatedServer\Xmlrpc\GbxRemote->query(string(GetMaxPlayers), array()) in File core/Libs/Maniaplanet/DedicatedServer/Connection.php on Line 153
#4: Maniaplanet\DedicatedServer\Connection->execute(string(GetMaxPlayers), array(), boolean()) in File core/Libs/Maniaplanet/DedicatedServer/Connection.php on Line 1591
#5: Maniaplanet\DedicatedServer\Connection->getMaxPlayers() in File plugins/MCTeam/WidgetPlugin.php on Line 314
#6: MCTeam\WidgetPlugin->displayServerInfoWidget() in File plugins/MCTeam/WidgetPlugin.php on Line 534
#7: MCTeam\WidgetPlugin->updateWidgets(object(ManiaControl\Players\Player))
#8: call_user_func_array(array(object(MCTeam\WidgetPlugin), string(updateWidgets)), array(object(ManiaControl\Players\Player))...) in File core/Callbacks/Listening.php on Line 62
#9: ManiaControl\Callbacks\Listening->triggerCallbackWithParams(array(object(ManiaControl\Players\Player))) in File core/Callbacks/CallbackManager.php on Line 289
...
Code: Select all
require __DIR__ . '/vendor/autoload.php';
$connection = Maniaplanet\DedicatedServer\Connection::factory('127.0.0.1', 5005, 5, 'SuperAdmin', 'SuperAdmin');
$connection->chatSendServerMessage('Héllo £world');
Code: Select all
PHP 7.0.3 (cli) (built: Feb 2 2016 14:41:10) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies