\BEAR_Resource_Server_Handler

BEARリソースsocketサーバーハンドラー

リモートクライアントからソケット接続でリソースを行うハンドラです。
以下のように通信を行います。

クライアント書式 :
  read uri¶m1=val1¶m2&val2

レスポンス :
  200 (コード)
  アトリビュート(単数、複数)
  (空行)
  データ

Summary

Methods
Properties
Constants
__construct()
onConnect()
onReceiveData()
sendData()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct() 

Constructor

onConnect()

onConnect(integer  $clientId) : void

接続

Parameters

integer $clientId

クライアント番号

onReceiveData()

onReceiveData(integer  $clientId, string  $data = "") : void

データ受信ハンドラ

Parameters

integer $clientId

クライアントID

string $data

受信データ

sendData()

sendData(integer  $clientId, string  $method, \BEAR_Ro  $ro) : void

データ送信

Parameters

integer $clientId

クライアントID

string $method

リクエストメソッド名

\BEAR_Ro $ro

RO