void ClientConnectionAdapter::serverHelloComplete() { if (connectionState==&ClientConnectionState::CONNECTED_TO_SERVER) { try { gotoState(&ClientConnectionState::IN_SYNC_WITH_SERVER); entryStore.sendUnknownEntries(*connection); } catch (IOException& e) { ioException(e); } } else throw BadMessageException("A client should only receive a server hello complete once and only after it has connected to the server"); }
void ServerConnectionAdapter::serverHelloComplete() { throw BadMessageException("A server should not receive a server hello complete message"); }
void ServerConnectionAdapter::protocolVersionUnsupported(ProtocolVersion protocolRevision) { throw BadMessageException("A server should not receive a protocol version unsupported message"); }
void ClientConnectionAdapter::clientHello(ProtocolVersion protocolRevision) { throw BadMessageException("A client should not receive a client hello message"); }