Searched refs:_try_bind (Results 1 – 1 of 1) sorted by relevance
/tools/test/connectivity/acts/framework/acts/controllers/utils_lib/ |
D | host_utils.py | 31 port = _try_bind(0, socket.SOCK_STREAM, socket.IPPROTO_TCP) 33 if port and _try_bind(port, socket.SOCK_DGRAM, socket.IPPROTO_UDP): 46 return (_try_bind(port, socket.SOCK_STREAM, socket.IPPROTO_TCP) and 47 _try_bind(port, socket.SOCK_DGRAM, socket.IPPROTO_UDP)) 50 def _try_bind(port, socket_type, socket_proto): function
|