fix to pynorm Session.setRxPortReuse() method
parent
5cd6498c39
commit
1ba16231bb
|
|
@ -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]
|
||||
|
|
|
|||
|
|
@ -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'))
|
||||
|
|
|
|||
Loading…
Reference in New Issue