このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
|
php:7.2:ext:zmq [2020/11/24 20:53] y2sunlight [テストコード] |
php:7.2:ext:zmq [2020/11/27 15:53] (現在) y2sunlight [テストコード] |
||
|---|---|---|---|
| 行 180: | 行 180: | ||
| </ | </ | ||
| - | '' | + | '' |
| クライアントは、githubの例題には適当なものがなかったので、以下のように作りました。 | クライアントは、githubの例題には適当なものがなかったので、以下のように作りました。 | ||
| 行 187: | 行 187: | ||
| <?php | <?php | ||
| /* | /* | ||
| - | The client sends a message to the server | + | The client sends message to the server |
| */ | */ | ||
| $message = count($argv)> | $message = count($argv)> | ||
| /* Create a socket */ | /* Create a socket */ | ||
| - | $queue = new \ZMQSocket(new | + | $queue = new ZMQSocket(new ZMQContext(), |
| $queue-> | $queue-> | ||
| $queue-> | $queue-> | ||