久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網
      最全最豐富的資訊網站

      swoole on是啥意思

      swoole on是啥意思

      Server->on

      注冊Server的事件回調函數。 (推薦學習: swoole視頻教程)

      bool Server->on(string $event, mixed $callback);

      第1個參數是回調的名稱, 大小寫不敏感,具體內容參考回調函數列表,事件名稱字符串不要加on

      第2個函數是回調的PHP函數,可以是函數名的字符串,類靜態(tài)方法,對象方法數組,匿名函數。

      重復調用on方法時會覆蓋上一次的設定

      $serv = new SwooleServer("127.0.0.1", 9501); $serv->on('connect', function ($serv, $fd){     echo "Client:Connect.n"; }); $serv->on('receive', function ($serv, $fd, $reactor_id, $data) {     $serv->send($fd, 'Swoole: '.$data);     $serv->close($fd); }); $serv->on('close', function ($serv, $fd) {     echo "Client: Close.n"; }); $serv->start();

      贊(0)
      分享到: 更多 (0)
      網站地圖   滬ICP備18035694號-2    滬公網安備31011702889846號