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

Method send

src/utils/socket_client_udp.cpp:209–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207}
208
209int SocketClientUDP::send (const char *data, int size)
210{
211 int res = sendto (connect_socket, data, size, 0, (const struct sockaddr *)&socket_addr,
212 (int)sizeof (socket_addr));
213 if (res == SOCKET_ERROR)
214 {
215 return -1;
216 }
217 return res;
218}
219
220int SocketClientUDP::recv (void *data, int size)
221{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected