MCPcopy Create free account
hub / github.com/catboost/catboost / get_tcp_port

Method get_tcp_port

library/python/port_manager/__init__.py:58–62  ·  view source on GitHub ↗

Gets free TCP port

(self, port=0)

Source from the content-addressed store, hash-verified

56 return self.get_tcp_port(port)
57
58 def get_tcp_port(self, port=0):
59 '''
60 Gets free TCP port
61 '''
62 return self._get_port(port, socket.SOCK_STREAM)
63
64 def get_udp_port(self, port=0):
65 '''

Callers 2

get_portMethod · 0.95
get_tcp_and_udp_portMethod · 0.95

Calls 1

_get_portMethod · 0.95

Tested by

no test coverage detected