MCPcopy Index your code
hub / github.com/HelloZeroNet/ZeroNet / _request_header

Method _request_header

src/lib/subtl/subtl.py:118–120  ·  view source on GitHub ↗
(self, action)

Source from the content-addressed store, hash-verified

116 return trans
117
118 def _request_header(self, action):
119 trans_id = random.randint(0, (1 << 32) - 1)
120 return trans_id, struct.pack('!QLL', self.conn_id, action, trans_id)
121
122 def _process_response(self, action, payload, trans):
123 if action == CONNECT:

Callers 1

_sendMethod · 0.95

Calls 1

packMethod · 0.45

Tested by

no test coverage detected