Hi,
first, thanks for this awsome library
I have a problem while sending packet using SFML network tcp socket on raspberry pi. I'm basically sending a rather big packet (an uncompressed image), and while the programm works fine on windows (the image in recieved and sent perfectly), it doesn't work on the raspberry pi (the raspberry pi only send the image, it is received on another computer).
Or to be more precise, it doesn't work if the image is too big (ie the packet is too big). With a small image, things works. Besides, sending one "too big" packet seems to mess up every following packets, too big or not.
Here is the sending code
packet << sf::Uint32(img.size().width);
packet << sf::Uint32(img.size().height);
for (int x = 0; x < img.size().width; x++)
{
for (int y = 0; y < img.size().height; y++)
{
cv::Vec3b c = img.at<cv::Vec3b>(y, x);
packet << sf::Uint32((int)c.val[0]);
packet << sf::Uint32((int)c.val[1]);
packet << sf::Uint32((int)c.val[2]);
}
}
Any idea what might be happening? Oh and the sending socket is blocking and the reciever socket is non blocking.
Thanks!