SFML TCP packet receive
问题 I send a packet as client to server and I want to the server sends that packet forward to all client, here is the code: #include <iostream> #include <SFML/Network.hpp> using namespace std; int main() { int fromID; // receive data from 'fromID' int Message; // fromID's message sf::SocketTCP Listener; if (!Listener.Listen(4567)) return 1; // Create a selector for handling several sockets (the listener + the socket associated to each client) sf::SelectorTCP Selector; Selector.Add(Listener);