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

Method raw_send

lantz/drivers/legacy/network.py:40–49  ·  view source on GitHub ↗

Send raw bytes to the instrument. :param data: bytes to be sent to the instrument. :param data: bytes.

(self, data)

Source from the content-addressed store, hash-verified

38 self.host_port = (host, port)
39
40 def raw_send(self, data):
41 """Send raw bytes to the instrument.
42
43 :param data: bytes to be sent to the instrument.
44 :param data: bytes.
45 """
46 try:
47 self.socket.send(data)
48 except socket.timeout as e:
49 raise LantzSocketTimeoutError(str(e))
50
51 def raw_recv(self, size):
52 """Receive raw bytes to the instrument.

Callers

nothing calls this directly

Calls 2

sendMethod · 0.45

Tested by

no test coverage detected