You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sf::UdpSocket is capable of selecting a random available port as described in the documentation, using sf::UdpSocket::bind(sf::Socket::AnyPort):
You can use the special value Socket::AnyPort to tell the system to automatically pick an available port, and then call getLocalPort to retrieve the chosen port.
But there is nothing about sf::TcpListener::listen(sf::Socket::AnyPort).
I tried on my ArchLinux. It works as expected, and I can use sf::TcpListener::getLocalPort to know which port it decided to pick.
Is the documentation missing, or is it unsupported/not portable/something else?
Your environment
ArchLinux
SFML 2.5
The text was updated successfully, but these errors were encountered:
Subject
sf::UdpSocket
is capable of selecting a random available port as described in the documentation, usingsf::UdpSocket::bind(sf::Socket::AnyPort)
:But there is nothing about
sf::TcpListener::listen(sf::Socket::AnyPort)
.I tried on my ArchLinux. It works as expected, and I can use
sf::TcpListener::getLocalPort
to know which port it decided to pick.Is the documentation missing, or is it unsupported/not portable/something else?
Your environment
The text was updated successfully, but these errors were encountered: