MCPcopy Create free account
hub / github.com/apache/qpid-proton / on_accepted

Method on_accepted

python/examples/simple_send.py:44–48  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

42 self.sent += 1
43
44 def on_accepted(self, event):
45 self.confirmed += 1
46 if self.confirmed == self.total:
47 print("all messages confirmed")
48 event.connection.close()
49
50 def on_disconnected(self, event):
51 self.sent = self.confirmed

Callers

nothing calls this directly

Calls 2

printFunction · 0.85
closeMethod · 0.45

Tested by

no test coverage detected