def getCallbackIpAndPort(self, aIp, aPort): ip = aIp nettools = NetworkTools() if (ip == None): ip = nettools.getLanIp() if (aPort != None): port = nettools.findOpenPort(ip, aPort) else: port = nettools.findOpenPort(ip, 30000) return ip, port
def getCallbackIpAndPort(self, aIp, aPort): ip = aIp nettools = NetworkTools() if (ip == None): ip = nettools.getLanIp() if (aPort != None): port = nettools.findOpenPort(ip, aPort) else: port = nettools.findOpenPort(ip, 30000) return ip, port
def _getCallbackIpAndPort(self, aIp, aPort): """ Connect the ipaddress and port for a callback ping. Defaults to current IP address And ports starting at 30000. NOTE: the detection for current IP address only works on Linux! """ ip = aIp nettools = NetworkTools() if (ip == None): ip = nettools.getLanIp() if (aPort != None): port = nettools.findOpenPort(ip, aPort) else: port = nettools.findOpenPort(ip, 30000) return ip, port
def _getCallbackIpAndPort(self, aIp, aPort): """ Connect the ipaddress and port for a callback ping. Defaults to current IP address And ports starting at 30000. NOTE: the detection for current IP address only works on Linux! """ ip = aIp nettools = NetworkTools() if (ip == None): ip = nettools.getLanIp() if (aPort != None): port = nettools.findOpenPort(ip, aPort) else: port = nettools.findOpenPort(ip, 30000) return ip, port