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

Method SocketClientTCP

src/utils/socket_client_tcp.cpp:14–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12#pragma comment(lib, "AdvApi32.lib")
13
14SocketClientTCP::SocketClientTCP (const char *ip_addr, int port)
15{
16 strcpy (this->ip_addr, ip_addr);
17 this->port = port;
18 connect_socket = INVALID_SOCKET;
19 memset (&socket_addr, 0, sizeof (socket_addr));
20 wsa_initialized = false;
21}
22
23int SocketClientTCP::connect ()
24{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected