...
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user