Hi
Is it possible, to send and receive single char via sf::packet? I'm trying to do this with simple code:
sf::Packet packet;
char test = 0x01;
packet << test;
//sending packet
sf::Packet packet;
//receiving packet
char test;
packet >> test;
if (test == 0x01) std::cout << "Correct";
else std::cout << "Wrong" << (int)test;
...but it's not work: test is alyways 0.
Is there any solution for this problem?
Thanks