/rev/5a815629d825
changeset: 1220:5a815629d825
user: Janus Dam Nielsen <[email protected]>
date: Tue Oct 06 10:05:24 2009 +0200
summary: Added method for expecting data on the network using a specified
programcounter.
diffstat:
viff/runtime.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diffs (13 lines):
diff -r 8a5eb6550111 -r 5a815629d825 viff/runtime.py
--- a/viff/runtime.py Tue Oct 06 10:04:36 2009 +0200
+++ b/viff/runtime.py Tue Oct 06 10:05:24 2009 +0200
@@ -726,6 +726,9 @@
# Convert self.program_counter to a hashable value in order to
# use it as a key in self.protocols[peer_id].incoming_data.
pc = tuple(self.program_counter)
+ return self._expect_data_with_pc(pc, peer_id, data_type, deferred)
+
+ def _expect_data_with_pc(self, pc, peer_id, data_type, deferred):
key = (pc, data_type)
if key in self.protocols[peer_id].incoming_data:
_______________________________________________
viff-commits mailing list
[email protected]
http://lists.viff.dk/listinfo.cgi/viff-commits-viff.dk