summaryrefslogtreecommitdiff
path: root/python/qpid/connection.py
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2007-08-10 15:55:16 +0000
committerRafael H. Schloming <rhs@apache.org>2007-08-10 15:55:16 +0000
commit01652ef4ec4d7a92bfdcf677c27fb28968398bc6 (patch)
tree495a8d994def30a30512beaf4077643c41cff332 /python/qpid/connection.py
parent6577b14632d81c15482cb0793e01166cdb28eaff (diff)
downloadqpid-python-01652ef4ec4d7a92bfdcf677c27fb28968398bc6.tar.gz
added support for unpacked structs and execution.result
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@564637 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/qpid/connection.py')
-rw-r--r--python/qpid/connection.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/python/qpid/connection.py b/python/qpid/connection.py
index cdfa2c2dc0..58235117ef 100644
--- a/python/qpid/connection.py
+++ b/python/qpid/connection.py
@@ -74,7 +74,7 @@ def listen(host, port, predicate = lambda: True):
class Connection:
def __init__(self, io, spec):
- self.codec = codec.Codec(io)
+ self.codec = codec.Codec(io, spec)
self.spec = spec
self.FRAME_END = self.spec.constants.byname["frame_end"].id
@@ -95,7 +95,7 @@ class Connection:
c.encode_octet(self.spec.constants.byname[frame.type].id)
c.encode_short(frame.channel)
body = StringIO()
- enc = codec.Codec(body)
+ enc = codec.Codec(body, self.spec)
frame.encode(enc)
enc.flush()
c.encode_longstr(body.getvalue())
@@ -106,7 +106,7 @@ class Connection:
type = self.spec.constants.byid[c.decode_octet()].name
channel = c.decode_short()
body = c.decode_longstr()
- dec = codec.Codec(StringIO(body))
+ dec = codec.Codec(StringIO(body), self.spec)
frame = Frame.DECODERS[type].decode(self.spec, dec, len(body))
frame.channel = channel
end = c.decode_octet()