Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 64f66132a4
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (15 sloc) 0.33 kb
import sys
import zmq
def mainloop(addr):
"""foo"""
ctx = zmq.Context()
socket = ctx.socket(zmq.PUSH)
socket.bind(addr)
for line in sys.stdin:
socket.send(line)
print "->", line,
socket.close()
def main():
mainloop(sys.argv[1])
if __name__ == '__main__':
main()
Jump to Line
Something went wrong with that request. Please try again.