[zeromq-dev] Bash Binding

Justin Cook jhcook at gmail.com
Sat Nov 23 13:32:51 CET 2013


I would be interested in using/contributing to this. However, it would be nice if you could start with heavily commenting the source so I know what you are thinking or trying to accomplish with this. 

Cheers, 

-- 
Justin Cook


On Saturday, 23 November 2013 at 10:36, Pieter Hintjens wrote:

> Hi Evan,
> 
> It's the V/H/S of protocol stacks... if you ever intend to use this,
> consider making it an official ZeroMQ project.
> 
> -Pieter
> 
> On Sat, Nov 23, 2013 at 1:26 AM, Evan Gates <evan.gates at gmail.com (mailto:evan.gates at gmail.com)> wrote:
> > I came across the Bash Binding here http://zeromq.org/bindings:bash
> > 
> > zmq_push () { m=$(cat) && echo \
> > -e $(printf '\\x01\\x00\\x%02x\\x00%s' \
> > $((1 + ${#m})) "$m") | nc -q1 $@; }
> > 
> > and I was slightly horrified. Awesome idea, scary implementation. It
> > can't handle null bytes, messages over 254 bytes, and uses a non
> > standard tool (nc). So I decided to spruce it up a bit for fun.
> > 
> > I looked into creating a complete ZMQ implementation but bash doesn't
> > support listening sockets yet.
> > 
> > https://bitbucket.org/emg/tidbits/src/bd9a73ffee30ecb220e7f7763bec342ecd3bf315/zmq/zmq.bash?at=master
> > 
> > Enjoy!
> > 
> > -Evan
> > _______________________________________________
> > zeromq-dev mailing list
> > zeromq-dev at lists.zeromq.org (mailto:zeromq-dev at lists.zeromq.org)
> > http://lists.zeromq.org/mailman/listinfo/zeromq-dev
> 
> 
> 
> 
> 
> -- 
> -
> Pieter Hintjens
> CEO of iMatix.com (http://iMatix.com)
> Founder of ZeroMQ community
> blog: http://hintjens.com
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org (mailto:zeromq-dev at lists.zeromq.org)
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev






More information about the zeromq-dev mailing list