Start of a connection state machine, start of a TLV framework.

This commit is contained in:
Ian Gulliver
2015-02-05 21:57:04 +00:00
parent c91b64f892
commit dcbc3d6928
5 changed files with 39 additions and 7 deletions

View File

@@ -89,7 +89,8 @@ void CryptoPubServer::Loop() {
CryptoPubServerConnection::CryptoPubServerConnection(const int fd, const std::string secret_key)
: CryptoBase(fd),
secret_key_(secret_key) {
secret_key_(secret_key),
state_(AWAITING_HANDSHAKE) {
}
void CryptoPubServerConnection::OnReadable() {