MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / tcp

Method tcp

pager_lib/nmap/nmap.py:1049–1058  ·  view source on GitHub ↗

:param port: (int) tcp port :returns: info for tpc port

(self, port)

Source from the content-addressed store, hash-verified

1047 return False
1048
1049 def tcp(self, port):
1050 """
1051 :param port: (int) tcp port
1052 :returns: info for tpc port
1053
1054 """
1055 assert (
1056 type(port) is int
1057 ), f"Wrong type for [port], should be an int [was {type(port)}]"
1058 return self["tcp"][port]
1059
1060 def all_udp(self):
1061 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected