fix to pynorm Session.setRxPortReuse() method

pull/68/head
bebopagogo 2022-05-22 22:08:57 -04:00
parent 5cd6498c39
commit 1ba16231bb
2 changed files with 4 additions and 4 deletions

View File

@ -143,8 +143,8 @@ def get_libnorm():
libnorm.NormChangeDestination.errcheck = errcheck_bool
libnorm.NormSetRxPortReuse.restype = None
libnorm.NormSetRxPortReuse.argtypes = [ctypes.c_void_p, ctypes.c_bool,
ctypes.c_char_p, ctypes.c_char_p, ctypes.c_uint16]
libnorm.NormSetRxPortReuse.argtypes = [ctypes.c_void_p, ctypes.c_bool, ctypes.c_char_p,
ctypes.c_char_p, ctypes.c_uint16]
libnorm.NormGetRxPort.restype = ctypes.c_uint16
libnorm.NormGetRxPort.argtypes = [ctypes.c_void_p]

View File

@ -45,8 +45,8 @@ class Session(object):
def setTxPort(self, port):
libnorm.NormSetTxPort(self, port)
def setRxPortReuse(self, enable, bindToSessionAddr=True):
libnorm.NormSetRxPortReuse(self, enable, bindToSessionAddr)
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):
libnorm.NormSetMulticastInterface(self, iface.encode('utf-8'))