MCPcopy Create free account
hub / github.com/DanielOgorchock/ST_Anything / read

Method read

Arduino/libraries/Ethernet2/src/EthernetClient.cpp:95–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95int EthernetClient::read() {
96 uint8_t b;
97 if ( recv(_sock, &b, 1) > 0 )
98 {
99 // recv worked
100 return b;
101 }
102 else
103 {
104 // No data available
105 return -1;
106 }
107}
108
109int EthernetClient::read(uint8_t *buf, size_t size) {
110 return recv(_sock, buf, size);

Callers

nothing calls this directly

Calls 1

recvFunction · 0.50

Tested by

no test coverage detected