MCPcopy Create free account
hub / github.com/boostorg/asio / decode_header

Method decode_header

example/cpp11/chat/chat_message.hpp:66–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64 }
65
66 bool decode_header()
67 {
68 char header[header_length + 1] = "";
69 std::strncat(header, data_, header_length);
70 body_length_ = std::atoi(header);
71 if (body_length_ > max_body_length)
72 {
73 body_length_ = 0;
74 return false;
75 }
76 return true;
77 }
78
79 void encode_header()
80 {

Callers 3

do_read_headerMethod · 0.80
do_read_headerMethod · 0.80
do_read_headerMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected