fixes to pynorm for Python3 and normMsgr.py and normFileSend.py examples
parent
1ba16231bb
commit
858be37709
|
|
@ -48,11 +48,11 @@ def main(argv):
|
|||
|
||||
try:
|
||||
for event in instance:
|
||||
if event == 'NORM_TX_FLUSH_COMPLETED':
|
||||
print(event)
|
||||
if str(event) == 'NORM_TX_FLUSH_COMPLETED':
|
||||
print('Flush completed, exiting.')
|
||||
return 0
|
||||
else:
|
||||
print(event)
|
||||
|
||||
except KeyboardInterrupt:
|
||||
pass
|
||||
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ class Session(object):
|
|||
def setTxPort(self, port):
|
||||
libnorm.NormSetTxPort(self, port)
|
||||
|
||||
def setRxPortReuse(self, enable, rxBindAddr=None, senderAddr=None, senderPort=0)
|
||||
def setRxPortReuse(self, enable, rxBindAddr=None, senderAddr=None, senderPort=0):
|
||||
libnorm.NormSetRxPortReuse(self, enable, rxBindAddr.encode('utf-8'), senderAddr.encode('utf-8'), senderPort)
|
||||
|
||||
def setMulticastInterface(self, iface):
|
||||
|
|
|
|||
Loading…
Reference in New Issue