Hi! I am writting a programm and I want to "speak" with a server. I used CSocket,CSocketFile in order to create two CArchives one for reading and one for writing.
I use the code below :
m_arOut->WriteString(szMessage);
m_arOut->Flush();
while (!m_arIn->IsBufferEmpty())
{
m_arIn->ReadString(strResponse);
}
the problem is that it succeeds to write to the archive but there is no way to read the response.
I tested the server via telnet and it works really fine.
Any suggestion?
I use the code below :
m_arOut->WriteString(szMessage);
m_arOut->Flush();
while (!m_arIn->IsBufferEmpty())
{
m_arIn->ReadString(strResponse);
}
the problem is that it succeeds to write to the archive but there is no way to read the response.
I tested the server via telnet and it works really fine.
Any suggestion?