Lines Matching defs:sock
175 void CQueuedData::WriteToSocket(CECSocket *sock)
180 sock->SocketWrite(m_rd_ptr, GetUnreadDataLength());
181 m_rd_ptr += sock->GetLastCount();
185 void CQueuedData::ReadFromSocket(CECSocket *sock, size_t len)
190 sock->SocketRead(m_wr_ptr, canWrite);
191 m_wr_ptr += sock->GetLastCount();
195 size_t CQueuedData::ReadFromSocketAll(CECSocket *sock, size_t len)
203 if ( !sock->WaitSocketRead(10, 0) ) {
209 sock->SocketRead(m_wr_ptr, read_rem);
210 m_wr_ptr += sock->GetLastCount();
211 read_rem -= sock->GetLastCount();
213 if (sock->SocketRealError()) {