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

Method close

src/utils/bluetooth/socket_bluetooth_win.cpp:124–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124int SocketBluetooth::close ()
125{
126 int closesocket_result = closesocket (socket_bt);
127 socket_bt = INVALID_SOCKET;
128 int wsa_result = WSACleanup ();
129 return (int)((closesocket_result == 0 && wsa_result == 0) ?
130 SocketBluetoothReturnCodes::STATUS_OK :
131 SocketBluetoothReturnCodes::DISCONNECT_ERROR);
132}
133
134std::pair<std::string, int> SocketBluetooth::discover (char *selector)
135{

Callers 1

bluetooth_close_deviceFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected