[TASK] Finalized modifications on ClientManager.
[TASK] Added support for further class paths to ClassLoader. [TASK] Started to implement the irc client dispatcher. (partially works now)
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
<?php
|
||||
$clientManager = new \JPT\SocketFramework\Client\ClientManager();
|
||||
$clientManager->registerProtocol("irc", "Irc");
|
||||
$clientManager->registerProtocol("jpt", "Bot");
|
||||
$clientManager->registerClientDispatcherByProtocol("irc", "\JPT\IrcClient\ClientDispatcher");
|
||||
|
||||
$freenode = $clientManager->createTcpConnection("freenode", "irc");
|
||||
$clientManager->attachConfig(array(
|
||||
@@ -46,7 +45,7 @@ $eloxoph->connect("irc.eloxoph.com", 6667);*/
|
||||
|
||||
|
||||
|
||||
$srv = $clientManager->createTcpConnection("srv", "jpt");
|
||||
$srv = $clientManager->createTcpConnection("srv", "RAW");
|
||||
$srv->bind("localhost", 7777);
|
||||
$srv->listen();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user