Hi,
So I have a very simple server/client program using winsock. In C++. Using MingW as a compiler.
This is the code part which does the connecting:
for(;;)
{
if(Connect = accept(Listen, (SOCKADDR*)&Server, &size))
{
std::cout<<"\nConnection was reached";
}
}
How can I send and receive simple text from server to clients?
Also is a busy loop like the "for" really necessarily in this case? Can't it be done in another way?
Thanks.