46
Network / Re: Anyone here have a project made using SFML for networking?
« on: April 08, 2012, 08:46:19 am »
Sigh..... this has to be a bug....
I am getting not ready when I try to receive anything when I test the returned status on non-blocking sockets....
This is SFML2.0 and MSVC++ 2010...
switch(socket.receive(packetReceive))
{
case sf::Socket::Done:
std::cout << "done\n";
break;
case sf::Socket::Disconnected:
std::cout << "disconnected\n";
break;
case sf::Socket::Error:
std::cout << "error\n";
break;
case sf::Socket::NotReady:
std::cout << "not ready\n";
break;
}
I am getting not ready when I try to receive anything when I test the returned status on non-blocking sockets....
This is SFML2.0 and MSVC++ 2010...
switch(socket.receive(packetReceive))
{
case sf::Socket::Done:
std::cout << "done\n";
break;
case sf::Socket::Disconnected:
std::cout << "disconnected\n";
break;
case sf::Socket::Error:
std::cout << "error\n";
break;
case sf::Socket::NotReady:
std::cout << "not ready\n";
break;
}