USNavalResearchLaboratory / norm

NACK-Oriented Reliable Multicast (NORM) implementation & tools (RFCs 5740, 5401)
https://www.nrl.navy.mil/Our-Work/Areas-of-Research/Information-Technology/NCS/NORM/
Other
96 stars 33 forks source link

norm 1.5.9 python binding of setRxPortReuse session's method seems not to work #53

Closed urluberluneuf closed 2 years ago

urluberluneuf commented 2 years ago

The call of the setRxPortReuse with one boolean argument works with standard C++ lib but not with python: i tried what follows with python 2.7.18 interpreter:

import pynorm instance = pynorm.Instance() session = instance.createSession("224.1.2.3", 6003) session.setRxPortReuse(True) Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python2.7/dist-packages/pynorm/session.py", line 48, in setRxPortReuse libnorm.NormSetRxPortReuse(self, enable, bindToSessionAddr) TypeError: this function takes at least 5 arguments (3 given)

bebopagogo commented 2 years ago

I think I have addressed this and brought the pynorm code for this up to date with the NORM API