Пример #1
0
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");
}
Пример #2
0
void ServerConnectionAdapter::serverHelloComplete() {
	throw BadMessageException("A server should not receive a server hello complete message");
}
Пример #3
0
void ServerConnectionAdapter::protocolVersionUnsupported(ProtocolVersion protocolRevision) {
	throw BadMessageException("A server should not receive a protocol version unsupported message");
}
Пример #4
0
void ClientConnectionAdapter::clientHello(ProtocolVersion protocolRevision) {
	throw BadMessageException("A client should not receive a client hello message");
}