| 122 | |
| 123 | |
| 124 | bool Debugger::HasPendingCommand() |
| 125 | // Returns true if there is data in the socket's receive buffer. |
| 126 | // This is used for receiving commands asynchronously. |
| 127 | { |
| 128 | u_long dataPending; |
| 129 | if (ioctlsocket(mSocket, FIONREAD, &dataPending) == 0) |
| 130 | return dataPending > 0; |
| 131 | return false; |
| 132 | } |
| 133 | |
| 134 | |
| 135 | int Debugger::EnterBreakState() |