MCPcopy Create free account
hub / github.com/SmingHub/Sming / onClientReceive

Method onClientReceive

Sming/Components/Network/src/Network/TcpServer.cpp:122–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122bool TcpServer::onClientReceive(TcpClient& client, char* data, int size)
123{
124 debug_d("TcpSever onReceive: %s, %d bytes\r\n", client.getRemoteIp().toString().c_str(), size);
125 if(clientReceiveDelegate) {
126 return clientReceiveDelegate(client, data, size);
127 }
128 return true;
129}
130
131err_t TcpServer::staticAccept(void* arg, tcp_pcb* new_tcp, err_t err)
132{

Callers

nothing calls this directly

Calls 3

getRemoteIpMethod · 0.80
c_strMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected