i have run into a problem that i cannot solve:
if i ignore the error i can telnet port 3002 and send data over fine the fds will print it. so why do i get it?
#include "Socket.h"
#include <string>
#include <windows.h>
using namespace std;
DWORD WINAPI parse(LPVOID lpParam)
{
SocketServer in(3002,5);
while (1)
{
Socket* s=in.Accept();
while (1)
{
std::string r = s->ReceiveLine();
if (r.empty())
break;
Console_Output(r.c_str());
}
}
return 0;
}
if i comment this function body out(exept "return 0;") it will not error.
here is the SocketServer code: http://www.adp-gmbh.ch/win/misc/sockets.html