MCPcopy Create free account
hub / github.com/LabPy/lantz / sendfrag

Function sendfrag

lantz/drivers/legacy/rpc.py:250–255  ·  view source on GitHub ↗
(sock, last, frag)

Source from the content-addressed store, hash-verified

248# Record-Marking standard support
249
250def sendfrag(sock, last, frag):
251 x = len(frag)
252 if last:
253 x = x | 0x80000000
254 header = struct.pack(">I", x)
255 sock.send(header + frag)
256
257
258def sendrecord(sock, record):

Callers 1

sendrecordFunction · 0.85

Calls 1

sendMethod · 0.45

Tested by

no test coverage detected