예제 #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;
 }