File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -640,7 +640,7 @@ int MclagLink::getFd()
640
640
return m_connection_socket;
641
641
}
642
642
643
- void MclagLink::readData ()
643
+ uint64_t MclagLink::readData ()
644
644
{
645
645
mclag_msg_hdr_t *hdr = NULL ;
646
646
size_t msg_len = 0 ;
@@ -715,6 +715,7 @@ void MclagLink::readData()
715
715
716
716
memmove (m_messageBuffer, m_messageBuffer + start, m_pos - start);
717
717
m_pos = m_pos - (uint32_t )start;
718
- return ;
718
+
719
+ return 0 ;
719
720
}
720
721
Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ class MclagLink : public Selectable {
113
113
void accept ();
114
114
115
115
int getFd () override ;
116
- void readData () override ;
116
+ uint64_t readData () override ;
117
117
118
118
/* readMe throws MclagConnectionClosedException when connection is lost */
119
119
class MclagConnectionClosedException : public std ::exception
You can’t perform that action at this time.
0 commit comments