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

Function main

python/examples/broker.py:133–142  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

131
132
133def main():
134 parser = optparse.OptionParser(usage="usage: %prog [options]")
135 parser.add_option("-a", "--address", default="localhost:5672",
136 help="address router listens on (default %default)")
137 opts, args = parser.parse_args()
138
139 try:
140 Container(Broker(opts.address)).run()
141 except KeyboardInterrupt:
142 pass
143
144
145if __name__ == '__main__':

Callers 1

broker.pyFile · 0.70

Calls 3

ContainerClass · 0.90
BrokerClass · 0.70
runMethod · 0.45

Tested by

no test coverage detected