Definition at line 87 of file fake.c.
Referenced by getreply(), and recvrequest().
{
static int index = 0;
static int total = 0;
static char buffer[4096];
if (index == total)
{
index = 0;
total = recv(s, buffer, sizeof(buffer), 0);
if (total == SOCKET_ERROR)
{
total = 0;
return ERROR;
}
if (total == 0)
return EOF;
}
return buffer[index++];
}