| 122 | } |
| 123 | |
| 124 | int 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 | |
| 134 | std::pair<std::string, int> SocketBluetooth::discover (char *selector) |
| 135 | { |
no outgoing calls
no test coverage detected