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

Method do_call

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

Source from the content-addressed store, hash-verified

300 self.sock.close()
301
302 def do_call(self):
303 call = self.packer.get_buf()
304 sendrecord(self.sock, call)
305 reply = recvrecord(self.sock)
306 u = self.unpacker
307 u.reset(reply)
308 xid, verf = u.unpack_replyheader()
309 if xid != self.lastxid:
310 # Can't really happen since this is TCP...
311 raise RPCError('wrong xid in reply %r instead of %r' % (xid, self.lastxid))
312
313
314# Client using UDP to a specific port

Callers

nothing calls this directly

Calls 5

sendrecordFunction · 0.85
recvrecordFunction · 0.85
RPCErrorClass · 0.85
unpack_replyheaderMethod · 0.80
resetMethod · 0.45

Tested by

no test coverage detected