title: Messages not getting sent via ZMQ
body: <p>Currently, i am trying a simple code of sending/receiving messages using ZMQ. The code is as below</p>
  
  <pre><code>/* Create new queue object, there needs to be a server at the other end */
    $queue = new ZMQSocket(new ZMQContext(), ZMQ::SOCKET_REQ);
    $queue-&gt;connect("tcp://127.0.0.1:5555");
  
  /* Assign socket 1 to the queue, send and receive */
    $retries = 5;
    $sending = true;
  
  /* Start a loop */
    do {
     try {
      /* Try to send / receive */
      if ($sending) {
          echo "Sending message\n";
          $queue-&gt;send("This is a message", ZMQ::MODE_NOBLOCK);
          $sending = false;
      } else {
          echo "Got response: " . $queue-&gt;recv(ZMQ::MODE_NOBLOCK) . "\n";
          echo 'Complete';
          break;
      }
     } catch (ZMQSocketException $e) {
      /* EAGAIN means that the operation would have blocked, retry */
      if ($e-&gt;getCode() === ZMQ::ERR_EAGAIN) {
          echo " - Got EAGAIN, retrying ($retries)\n";
      } else {
          die(" - Error: " . $e-&gt;getMessage());
      }
     }
     /* Sleep a bit between operations */
     usleep(5);
    } while (--$retries);
  </code></pre>
  
  <p>When i run this script in console, my output is</p>
  
  <pre><code> Sending message
   Got response: 
   Complete
  </code></pre>
  
  <p>I believe that though there are no errors thrown, but still my message is not actually sent. I also ran <code>netstat</code> command but i didn't found any process listening on port 5555. Ideally there should be one(current). But no exception is thrown while making connection.
  Is there something which i am missing?</p>