[zeromq-dev] Ingesting external data via TCP with 0MQ
Ryan Richins
richinsr at mac.com
Tue Dec 20 22:38:02 CET 2011
Hi,
I have spent some time reading the 0MQ guide and going over the
examples using both the perl and ruby bindings but still feel I need
to just be pointed in the right direction regarding my particular
situation.
We have hardware device that sends data in its own specific format via
a TCP connection. Currently I have a small perl program (using
IO::Socket::INET) on a linux machine set up to parse the 'device
specfic' protocol.
What I have been attempting to do but with no success is to use
ZMQ::PULL to bind to the TCP port and then just read in the message
from the device and print out whatever it gets to stdout.
The majority of the 0MQ examples expect that whatever is sending or
receiving a message is 0MQ 'aware' for lack of a better word. My
question is, is this possible and really, if it is... should it be
done and if so, how would I set up a small 0MQ example with either
perl/ruby to just read in data from a socket and dump it to stdout?
Or would it be better to use something like IO::Socket::INET to listen
on a port, parse the incoming message and then send data off to
workers which would be 0MQ aware?
Thanks,
Ryan
More information about the zeromq-dev
mailing list