SFML community forums

Help => Network => Topic started by: Henry on August 08, 2021, 05:42:09 am

Title: multiple tcplisteners
Post by: Henry on August 08, 2021, 05:42:09 am
Hi! im a fellow newbie who just found out about sfml

i was wondering if we can have multiple Tcplisteners and socketSelectors on multiple different port, if i cant, is there anyway i can have a server listening to multiple different ports?

Thanks!
Title: Re: multiple tcplisteners
Post by: eXpl0it3r on October 10, 2021, 06:31:04 pm
If you do, the Socket police will come and arrest you :D

Joking aside, I think this should be quite okay, but you of course need to then come up with a concept that allows for multiple socket handling, which can be quite tricky.