Skip to content

Instantly share code, notes, and snippets.

@maggedotno
Created October 20, 2012 20:24
Show Gist options
  • Save maggedotno/3924664 to your computer and use it in GitHub Desktop.
Save maggedotno/3924664 to your computer and use it in GitHub Desktop.
ZMQ Pipeline vanilla pull
<?php
$zmq = new ZMQContext(1);
$socket = $zmq->getSocket(ZMQ::SOCKET_PULL, 'xyz');
$socket->bind('ipc:///tmp/xyz');
while (true) {
$inc = $socket->recv();
echo "-";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment