| 88 | |
| 89 | |
| 90 | void ServerConnection::close() { |
| 91 | _pClient.reset(new TCPClient(_pClient->manager())); |
| 92 | _pClient->OnError::subscribe(_onError); |
| 93 | _pClient->OnDisconnection::subscribe(_onDisconnection); |
| 94 | _pClient->OnData::subscribe(_onData); |
| 95 | } |
| 96 | |
| 97 | void ServerConnection::connect(const Parameters& parameters) { |
| 98 | if(_connected) |