MCPcopy Create free account
hub / github.com/secdev/scapy / SEND_DATA

Method SEND_DATA

scapy/layers/tftp.py:322–328  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

320 # SEND_DATA
321 @ATMT.state()
322 def SEND_DATA(self):
323 self.awaiting += 1
324 self.last_packet = self.l3 / TFTP_DATA(block=self.awaiting) / self.data.pop(0) # noqa: E501
325 self.send(self.last_packet)
326 if self.data:
327 raise self.WAITING_ACK()
328 raise self.END()
329
330 # ERROR
331 @ATMT.state(error=1)

Callers 1

received_ackMethod · 0.95

Calls 5

WAITING_ACKMethod · 0.95
ENDMethod · 0.95
TFTP_DATAClass · 0.85
popMethod · 0.80
sendMethod · 0.45

Tested by

no test coverage detected