(Previous) (Next) Net_Server::create

View this page in Last updated: Sun, 31 Aug 2008
English | French | Hungarian | Japanese | Polish | Spanish | Plain HTML

Net_Server のクラス概要

Net_Server のクラス概要 -- PHP ソケットサーバの基底クラス

PHP ソケットサーバ基底クラス

このクラスは、静的メソッド 'create()' を使用して新しいサーバを生成するためだけに使用されなければなりません。

サーバ実行中に発生したイベントを操作するために、 全てのイベントを操作する新しいクラスを生成する必要があります。

1     require_once 'myHandler.php';
2      require_once 'Net/Server.php';
3
4      $server = &Net_Server::create('fork', 'localhost', 9090);
5
6      $handler = &new myHandler;
7
8      $server->setCallbackObject($handler);
9
10     $server->start();

新しいハンドラを実装するために利用できる基底クラス Server/Handler.php を参照してください。

Net_Server のクラスツリー

  • Net_Server

(Previous) (Next) Net_Server::create

Download Documentation Last updated: Sun, 31 Aug 2008
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.