Skip to content
Snippets Groups Projects
Commit fe384adb authored by Ramin Yaghoubzadeh Torky's avatar Ramin Yaghoubzadeh Torky
Browse files

ipaaca-p[io]ng: added the default argument parser

parent 98140cd8
No related branches found
No related tags found
No related merge requests found
...@@ -36,6 +36,9 @@ class PingSender(object): ...@@ -36,6 +36,9 @@ class PingSender(object):
self.ob.add(iu) self.ob.add(iu)
iap = ipaaca.IpaacaArgumentParser('ipaaca-ping')
arguments = iap.parse_args()
ps = PingSender() ps = PingSender()
while True: while True:
ps.send_ping() ps.send_ping()
......
...@@ -8,6 +8,9 @@ def iu_event_handler(iu, event_type, local): ...@@ -8,6 +8,9 @@ def iu_event_handler(iu, event_type, local):
iu.payload['receiver_local_t'] = time.time() iu.payload['receiver_local_t'] = time.time()
print('Sent IPAACA ping reply') print('Sent IPAACA ping reply')
iap = ipaaca.IpaacaArgumentParser('ipaaca-pong')
arguments = iap.parse_args()
ib = ipaaca.InputBuffer('IpaacaPong', ['ipaacaPing']) ib = ipaaca.InputBuffer('IpaacaPong', ['ipaacaPing'])
ib.register_handler(iu_event_handler) ib.register_handler(iu_event_handler)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment