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

Method send

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected