MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / read

Method read

src/rpc/core/rpcprotocol.h:112–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110 stream.handshake(role);
111 }
112 streamsize read(char* s, streamsize n)
113 {
114 handshake(boost::asio::ssl::stream_base::server); // HTTPS servers read first
115 if (fUseSSL) return stream.read_some(boost::asio::buffer(s, n));
116 return stream.next_layer().read_some(boost::asio::buffer(s, n));
117 }
118 streamsize write(const char* s, streamsize n)
119 {
120 handshake(boost::asio::ssl::stream_base::client); // HTTPS clients write first

Callers 2

GetLuaContractScriptMethod · 0.45
ReadHTTPMessageFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected