| 25 | } |
| 26 | |
| 27 | bool BusSocketProcess::close() { |
| 28 | if ( mState == State::Running ) { |
| 29 | if ( mSocket->state() == State::Running ) |
| 30 | mSocket->close(); |
| 31 | if ( mProcess->state() == State::Running ) |
| 32 | mProcess->close(); |
| 33 | mState = State::Closed; |
| 34 | return true; |
| 35 | } |
| 36 | |
| 37 | return false; |
| 38 | } |
| 39 | |
| 40 | void BusSocketProcess::startAsyncRead( ReadFn readFn ) { |
| 41 | mSocket->startAsyncRead( readFn ); |