We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 340b0e1 commit b2fe6b7Copy full SHA for b2fe6b7
2 files changed
libs/network/include/s25util/Socket.h
@@ -158,7 +158,7 @@ class Socket
158
bool operator>(const Socket& sock) const;
159
160
/// prüft auf wartende Bytes.
161
- int BytesWaiting();
+ int BytesWaiting() const;
162
163
164
int BytesWaiting(unsigned* received) const;
libs/network/src/Socket.cpp
@@ -751,7 +751,7 @@ bool Socket::operator>(const Socket& sock) const
751
*
752
* @return liefert die Menge der wartenden Bytes
753
*/
754
-int Socket::BytesWaiting()
+int Socket::BytesWaiting() const
755
{
756
unsigned received;
757
if(BytesWaiting(&received) != 0)
0 commit comments