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

add arguments `txBindAddress` back to pynorm Session.setTxPort #61

Closed honglei closed 2 years ago

honglei commented 2 years ago

If a host has multi network interfaces, and one interface has many ip addresses, set txBindAddress is the easy way to make things work.

    def setTxPort(self, port:int, addr:str="" ):
        if addr:
            libnorm.NormSetTxPort(self, port,False, addr.encode() )
        else:
            libnorm.NormSetTxPort(self, port)
bebopagogo commented 2 years ago

I have made this change and committed it to master.