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

Method recv

src/utils/broadcast_client.cpp:59–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59int BroadCastClient::recv (void *data, int size)
60{
61 int len = sizeof (socket_addr);
62 int res = recvfrom (connect_socket, (char *)data, size, 0, (sockaddr *)&socket_addr, &len);
63 if (res == SOCKET_ERROR)
64 {
65 return -1;
66 }
67 return res;
68}
69
70void BroadCastClient::close ()
71{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected