Client -> server handshake successful

This commit is contained in:
Ian Gulliver
2015-02-07 10:47:03 -08:00
parent f8c2222774
commit ce0d4481d3
3 changed files with 32 additions and 6 deletions

1
tlv.cc
View File

@@ -48,7 +48,6 @@ TLVNode* TLVNode::Decode(const std::string& input) {
return nullptr;
}
auto header = (struct header*)input.data();
std::cerr << "[type=" << htons(header->type) << ", value_length=" << htons(header->value_length) << "]" << std::endl;
if (input.length() < sizeof(*header) + htons(header->value_length)) {
return nullptr;
}