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

Method unpack_callheader

lantz/drivers/legacy/rpc.py:138–152  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

136 return (flavor, stuff)
137
138 def unpack_callheader(self):
139 xid = self.unpack_uint()
140 temp = self.unpack_enum()
141 if temp != msg_type.CALL:
142 raise RPCBadFormat('no CALL but %r' % (temp,))
143 temp = self.unpack_uint()
144 if temp != RPCVERSION:
145 raise RPCBadVersion('bad RPC version %r' % (temp,))
146 prog = self.unpack_uint()
147 vers = self.unpack_uint()
148 proc = self.unpack_uint()
149 cred = self.unpack_auth()
150 verf = self.unpack_auth()
151 return xid, prog, vers, proc, cred, verf
152 # Caller must add procedure-specific part of call
153
154 def unpack_replyheader(self):
155 xid = self.unpack_uint()

Callers

nothing calls this directly

Calls 3

unpack_authMethod · 0.95
RPCBadFormatClass · 0.85
RPCBadVersionClass · 0.85

Tested by

no test coverage detected