1
Network / Re: std::vector of sockets [c++]
« on: October 16, 2016, 03:40:05 pm »
Ah okay thanks for the quick reply, my fault for not reading the error properly.
Maybe update the docs to make this a bit clearer?
http://www.sfml-dev.org/tutorials/2.3/network-socket.php
Maybe update the docs to make this a bit clearer?
http://www.sfml-dev.org/tutorials/2.3/network-socket.php
Quote
A selector is not a socket container. It only references (points to) the sockets that you add, it doesn't store them. There is no way to retrieve or count the sockets that you put inside. Instead, it is up to you to have your own separate socket storage (like a std::vector or a std::list).