MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / recv_raw

Method recv_raw

test/functional/interface_http.py:82–86  ·  view source on GitHub ↗

Blocking socket will wait until data is received and return up to 1024 bytes

(self)

Source from the content-addressed store, hash-verified

80 self.send_raw(req.encode("ascii") + data_bytes)
81
82 def recv_raw(self):
83 '''
84 Blocking socket will wait until data is received and return up to 1024 bytes
85 '''
86 return self.conn.sock.recv(1024)
87
88 def expect_timeout(self, seconds):
89 # Wait for response, but expect a timeout disconnection

Calls

no outgoing calls

Tested by

no test coverage detected