| 74 | } |
| 75 | |
| 76 | int SocketBluetooth::send (const char *data, int size) |
| 77 | { |
| 78 | if (socket_bt == INVALID_SOCKET) |
| 79 | { |
| 80 | return -1; |
| 81 | } |
| 82 | int res = ::send (socket_bt, data, size, 0); |
| 83 | if (res == SOCKET_ERROR) |
| 84 | { |
| 85 | return -1; |
| 86 | } |
| 87 | return res; |
| 88 | } |
| 89 | |
| 90 | int SocketBluetooth::recv (char *data, int size) |
| 91 | { |
no outgoing calls
no test coverage detected