MCPcopy
hub / github.com/RUB-NDS/PRET / recv

Method recv

helper.py:466–476  ·  view source on GitHub ↗
(self, bytes)

Source from the content-addressed store, hash-verified

464
465 # receive data
466 def recv(self, bytes):
467 # receive data from device
468 if self._file:
469 data = os.read(self._file, bytes).decode()
470 # receive data from socket
471 else:
472 data = self._sock.recv(bytes).decode()
473 # output recv data when in debug mode
474 if self.debug:
475 output().recv(self.beautify(data), self.debug)
476 return data
477
478 # so-many-seconds-passed bool condition
479 def past(self, seconds, watchdog):

Callers 8

recv_untilMethod · 0.95
cmdMethod · 0.45
cmdMethod · 0.45
cmdMethod · 0.45
do_shellMethod · 0.45
check_acknowledgementFunction · 0.45
lpdtest.pyFile · 0.45
check_acknowledgementFunction · 0.45

Calls 3

beautifyMethod · 0.95
outputClass · 0.85
readMethod · 0.80

Tested by 1

check_acknowledgementFunction · 0.36