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

Method SocketServerTCP

src/utils/socket_server_tcp.cpp:13–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11#pragma comment(lib, "AdvApi32.lib")
12
13SocketServerTCP::SocketServerTCP (const char *local_ip, int local_port, bool recv_all_or_nothing)
14{
15 strcpy (this->local_ip, local_ip);
16 this->local_port = local_port;
17 this->recv_all_or_nothing = recv_all_or_nothing;
18 server_socket = INVALID_SOCKET;
19 connected_socket = INVALID_SOCKET;
20 client_connected = false;
21 wsa_initialized = false;
22}
23
24int SocketServerTCP::bind ()
25{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected