[TASK] Added an outputBuffer to the AbstractClientDispatcher.
[TASK] Added support for the new outputBuffer - it can be used in addition to the default behaviour "return a string on processRawData()".
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<?php
|
||||
$clientManager = new \JPT\SocketFramework\Client\ClientManager();
|
||||
$clientManager->registerClientDispatcherByProtocol("irc", "\JPT\IrcClient\ClientDispatcher");
|
||||
$clientManager->registerClientDispatcherByProtocol("irc", "\JPT\IrcClient\IrcClientDispatcher");
|
||||
$clientManager->registerClientDispatcherByProtocol("jpt_control", "\JPT\IrcClient\BotClientDispatcher");
|
||||
|
||||
$freenode = $clientManager->createTcpConnection("freenode", "irc");
|
||||
$clientManager->attachConfig(array(
|
||||
@@ -45,7 +46,7 @@ $eloxoph->connect("irc.eloxoph.com", 6667);*/
|
||||
|
||||
|
||||
|
||||
$srv = $clientManager->createTcpConnection("srv", "RAW");
|
||||
$srv = $clientManager->createTcpConnection("srv", "jpt_control");
|
||||
$srv->bind("localhost", 7777);
|
||||
$srv->listen();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user