| 167 | } |
| 168 | |
| 169 | void NetworkBase::Reconnect() |
| 170 | { |
| 171 | if (status != Status::none) |
| 172 | { |
| 173 | Close(); |
| 174 | } |
| 175 | if (_requireClose) |
| 176 | { |
| 177 | _requireReconnect = true; |
| 178 | return; |
| 179 | } |
| 180 | BeginClient(_host, _port); |
| 181 | } |
| 182 | |
| 183 | void NetworkBase::Close() |
| 184 | { |
no test coverage detected