Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - ScuroGuardiano

Pages: [1]
1
Network / Re: Incompatible packets with sf::Packet blocking program
« on: October 25, 2016, 04:00:14 pm »
Ok, thanks for reply.

2
Network / Incompatible packets with sf::Packet blocking program
« on: October 25, 2016, 12:49:17 am »
Hi
I have a problem with receiving packets to sf::Packet. It's very comfortable to use it, but when one of clients send incompatible packet (for example I type server address with port in browser) server get stopped until I close incompatible client. How I can make ignoring incompatible packets with sf::Packet? Code:
//loop code
if( selektor.isReady( Clients[ i ] ) )
{
    sf::Packet temp;
    Clients[ i ]->receive( temp ); //Here program stops when I send incompatible packet
}
//loop code

PS. Sorry for my bad english, in polish schools they don't teach good :/

Pages: [1]