MCPcopy Create free account
hub / github.com/amule-project/amule / WriteToSocket

Method WriteToSocket

src/libs/ec/cpp/ECSocket.cpp:183–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181
182
183uint32 CQueuedData::WriteToSocket(CECSocket *sock)
184{
185 wxCHECK_MSG(m_rd_ptr < m_wr_ptr, 0,
186 "Reading past written data in WriteToSocket");
187
188 uint32 write = sock->SocketWrite(m_rd_ptr, GetUnreadDataLength());
189 m_rd_ptr += write;
190 return write;
191}
192
193
194uint32 CQueuedData::ReadFromSocket(CECSocket *sock, size_t len)

Callers 1

OnOutputMethod · 0.80

Calls 1

SocketWriteMethod · 0.80

Tested by

no test coverage detected