Skip to content

Commit

Permalink
Added gevent-zeromq example fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmc committed May 10, 2012
1 parent 571fa15 commit 320f0a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
Markdown==2.1.1
cogapp==2.3
Jinja2==2.6
gevent
gevent-zeromq
3 changes: 2 additions & 1 deletion tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -730,6 +730,7 @@ gevent-zeromq``

[[[cog
# Note: Remember to ``pip install pyzmq gevent_zeromq``
import gevent
from gevent_zeromq import zmq

# Global Context
Expand All @@ -747,7 +748,7 @@ def server():

def client():
client_socket = context.socket(zmq.REP)
client_socket.connect("tcp://*:5000")
client_socket.connect("tcp://127.0.0.1:5000")

for request in range(1,10):

Expand Down

0 comments on commit 320f0a0

Please sign in to comment.