Permalink
Browse files

src: moved zrecv, zsend into zat and zee

  • Loading branch information...
1 parent f039b3f commit 64f66132a40d5f6129009b11292c4478c7a38a94 @arsatiki committed Mar 5, 2011
Showing with 10 additions and 5 deletions.
  1. +1 −0 zmqshelltools/__init__.py
  2. +4 −2 zrecv.py → zmqshelltools/zat.py
  3. +5 −3 zsend.py → zmqshelltools/zee.py
@@ -0,0 +1 @@
+__version__ = '0.0.0'
@@ -1,7 +1,7 @@
import sys
import zmq
-def main(addresses):
+def mainloop(addresses):
"""foo"""
ctx = zmq.Context()
sockets = []
@@ -21,7 +21,9 @@ def main(addresses):
for socket in sockets:
socket.close()
+def main():
+ mainloop(sys.argv[1:])
if __name__ == '__main__':
- main(sys.argv[1:])
+ main()
@@ -1,7 +1,7 @@
import sys
import zmq
-def main(addr):
+def mainloop(addr):
"""foo"""
ctx = zmq.Context()
socket = ctx.socket(zmq.PUSH)
@@ -13,6 +13,8 @@ def main(addr):
socket.close()
-
+def main():
+ mainloop(sys.argv[1])
+
if __name__ == '__main__':
- main(sys.argv[1])
+ main()

0 comments on commit 64f6613

Please sign in to comment.