Ok, thank you for your help, I will do some experiments now.
But it would be much nicer to be able to poll the status like
if(socket.GetStatus() == Socket::Done)
{
//put in new date
}
The problem is that with you approach I always have to prepare a new packet without knowing if I will be able to sent it.
And does NotReady in this case mean that it will be sent later, or that it wont be sent at all?
And how does non-blocking io work for receiving?
I would try it like this:
sf::Packet toReceive;
socket >> receive;
if(!toReceive)
{
//packet invalid, try again later...
}
Does it work like this?