MCPcopy Create free account
hub / github.com/SySS-Research/hallucinate / rhandle

Method rhandle

hallucinate/java.py:55–63  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

53 logging.debug('Received request from Java agent: %s', rdata)
54
55 def rhandle(data):
56 logging.debug('Sending response to Java agent: %s', data)
57 p = struct.pack('>I', len(data))
58 for k, v in data.items():
59 ke = str(k).encode('utf-8')
60 ve = str(v).encode('utf-8')
61 p += struct.pack('>H', len(ke)) + ke
62 p += struct.pack('>H', len(ve)) + ve
63 self.request.sendall(p)
64
65 self.server.handler(rdata, rhandle)
66

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected