SFML community forums
Help => Network => Topic started by: firepro20 on December 01, 2019, 07:42:52 pm
-
Is it possible to send two packets simultaneously in UDP?
playerData << playerXPosition << playerYPosition << bulletPtr->isAlive() << bulletPtr->getLocation().x << bulletPtr->getLocation().y;
bulletData << bulletPtr->isAlive() << bulletPtr->getLocation().x << bulletPtr->getLocation().y;
socket.send(playerData, sender, port);
socket.send(bulletData, sender, port);
-
No, but if you want to send the data at once, just pack it all into one Packet.
-
Got it thanks!