This commit is contained in:
2024-06-13 18:24:52 +03:00
parent e730b85714
commit 849c68a060
2 changed files with 110 additions and 34 deletions

View File

@@ -34,7 +34,7 @@ struct AdcNetProtoStopSeq : InetT {
static_assert(stopSeqSize, "STOP BYTE SEQUENCE MUST NOT BE AN EMPTY ONE!!!");
using typename InetT::socket;
using socket_t = typename InetT::socket;
template <std::input_iterator IT>
std::pair<IT, bool> matchCondition(IT begin, IT end)
@@ -50,7 +50,7 @@ struct AdcNetProtoStopSeq : InetT {
std::advance(res.first, stopSeqSize); // move iterator to the one-past-the-end position
res.second = true;
} else {
// may be only a part of message was received,
// may be only a part of valid byte sequence was received,
// so start next matching from previous begin-iterator
res.first = begin;
}