MCPcopy Create free account
hub / github.com/brainflow-dev/brainflow / recv

Method recv

src/utils/socket_client_tcp.cpp:73–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73int SocketClientTCP::recv (void *data, int size)
74{
75 int len = sizeof (socket_addr);
76 int res = ::recv (connect_socket, (char *)data, size, 0);
77 if (res == SOCKET_ERROR)
78 {
79 return -1;
80 }
81 return res;
82}
83
84void SocketClientTCP::close ()
85{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected