コード例 #1
0
ファイル: RxZmq.php プロジェクト: domraider/rxnet
 public function req($dsn = null)
 {
     $socket = new Socket($this->context->getSocket(\ZMQ::SOCKET_REQ), $this->serializer, $this->loop);
     if ($dsn) {
         $socket->connect($dsn);
     }
     return $socket;
 }