MCPcopy
hub / github.com/RUB-NDS/PRET / check_acknowledgement

Function check_acknowledgement

lpd/lpdtest.py:69–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

67
68
69def check_acknowledgement():
70 if s.recv(4096) != b"\000":
71 print("Negative acknowledgement")
72 s.send(b"\001\n") # [ RFC 1179 | 6.1 01 - Abort job ]
73 s.close()
74 sys.exit()
75
76
77# ----------------------------------------------------------------------

Callers 1

lpdtest.pyFile · 0.70

Calls 3

recvMethod · 0.45
sendMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected