| 279 | } |
| 280 | |
| 281 | bool PipeSendRequest(PipeData &data) |
| 282 | { |
| 283 | int result = RemoteData::SocketSend(RemoteData::sck, (char*)&data, sizeof(data), 5); |
| 284 | if(!result || result == -1) |
| 285 | { |
| 286 | if(!result) |
| 287 | MessageBox(hWnd, "Failed to send data through socket (select failed)", "ERROR", MB_OK); |
| 288 | else |
| 289 | MessageBox(hWnd, GetLastErrorDesc(), "Error", MB_OK); |
| 290 | return false; |
| 291 | } |
| 292 | return true; |
| 293 | } |
| 294 | |
| 295 | char* PipeReceiveResponce(PipeData &data) |
| 296 | { |
no test coverage detected