Skip to content

Instantly share code, notes, and snippets.

@michelp
Created April 19, 2013 00:56
Show Gist options
  • Select an option

  • Save michelp/5417378 to your computer and use it in GitHub Desktop.

Select an option

Save michelp/5417378 to your computer and use it in GitHub Desktop.
$ ./pil lib/0mq.l +
: (setq c (new '(+Context)))
-> $1333645565
: c
-> $1333645565
: (setq a (new_socket c DEALER))
-> $1333652446
: (bind_to a "ipc://objs.sock")
-> 0
: (setq b (new_socket c DEALER))
-> $1333654551
: (connect_to b "ipc://objs.sock")
-> 0
: (send_str a "hi there")
-> 0
: (recv_str b)
-> "hi there"
:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment