| 24 | |
| 25 | |
| 26 | bool Await_Approval() { |
| 27 | while (STATUS_CODE == 4 || STATUS_CODE == 5 || STATUS_CODE == 6) { |
| 28 | Sleep(0); |
| 29 | } |
| 30 | if (STATUS_CODE == 1) { //success |
| 31 | return true; |
| 32 | } |
| 33 | if (STATUS_CODE == 2) { //error |
| 34 | return false; |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | void Disconnect() { |
| 39 | std::cout << "disconnecting..." << std::endl; |
no outgoing calls
no test coverage detected