Lines Matching refs:sock
98 wxProtocolError wxProtocol::ReadLine(wxSocketBase *sock, wxString& result)
106 while ( sock->WaitForRead() )
109 sock->Peek(pBuf, LINE_BUF);
111 size_t nRead = sock->LastCount();
112 if ( !nRead && sock->Error() )
150 sock->Read(pBuf, nRead);
151 if ( sock->LastCount() != nRead )
175 wxProtocolError GetLine(wxSocketBase *sock, wxString& result)
183 avail = sock->Read(tmp_buf, PROTO_BSIZE).LastCount();
184 if (sock->Error() || avail == 0)
208 sock->Unread(&tmp_buf[size], avail-size);