~ubuntu-branches/ubuntu/precise/pyzmq/precise

« back to all changes in this revision

Viewing changes to examples/mongodb/client.py

  • Committer: Package Import Robot
  • Author(s): Debian Python Modules Team
  • Date: 2011-09-23 00:16:39 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: package-import@ubuntu.com-20110923001639-girjqodpb7uv17yu
Tags: 2.1.9-1
* New upstream version
  - should build on kFreeBSD without patches (Closes: #637777).
* Build-depend on zeromq 2.1.9

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
 
29
29
    def __init__(self, connect_addr='tcp://127.0.0.1:5000'):
30
30
        self._context = zmq.Context()
31
 
        self._socket = self._context.socket(zmq.XREQ)
 
31
        self._socket = self._context.socket(zmq.DEALER)
32
32
        self._socket.connect(connect_addr)
33
33
 
34
34
    def _send_recv_msg(self, msg):