q789321 发表于 2017-3-20 10:30:23

php zero mq

  PHP Zero MQ

use ZMQ;
use ZMQContext;
use ZMQSocket;
$addr = "tcp://127.0.0.1:5555";
$context = new ZMQContext();   
$socket= new ZMQSocket($context, ZMQ::SOCKET_REQ);
$socket->connect($addr);
$socket->send("hello , this is a messgae");
$reply = $socket->recv();
$socket->disconnect($addr);
页: [1]
查看完整版本: php zero mq