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

Method send

src/utils/socket_server_tcp.cpp:105–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105int SocketServerTCP::send (const void *data, int size)
106{
107 if (connected_socket == INVALID_SOCKET)
108 {
109 return -1;
110 }
111 int res = ::send (connected_socket, (const char *)data, size, 0);
112 if (res == SOCKET_ERROR)
113 {
114 return -1;
115 }
116 return res;
117}
118
119int SocketServerTCP::recv (void *data, int size)
120{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected