MCPcopy Create free account
hub / github.com/crossuo/crossuo / ReadyRead

Method ReadyRead

src/Wisp/WispConnection.cpp:75–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75bool CConnection::ReadyRead()
76{
77 if (!Connected || m_Socket == nullptr)
78 {
79 return false;
80 }
81
82 DataReady = tcp_select(m_Socket);
83 if (DataReady == -1)
84 {
85 Error(Network, "CConnection::ReadyRead SOCKET_ERROR");
86 Disconnect();
87 }
88
89 return (DataReady != 0);
90}
91
92bool CConnection::Read(int maxSize)
93{

Callers 2

ReadMethod · 0.80
RecvMethod · 0.80

Calls 2

tcp_selectFunction · 0.85
ErrorFunction · 0.85

Tested by

no test coverage detected