Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: multiple tcplisteners  (Read 1985 times)

0 Members and 1 Guest are viewing this topic.


  • Newbie
  • *
  • Posts: 4
    • View Profile
    • Email
multiple tcplisteners
« 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?



  • SFML Team
  • Hero Member
  • *****
  • Posts: 9944
    • View Profile
    • development blog
    • Email
Re: multiple tcplisteners
« Reply #1 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.
Official FAQ: https://www.sfml-dev.org/faq.php
Nightly Builds: https://www.nightlybuilds.ch/
Dev Blog: https://dev.my-gate.net/
Thor: http://www.bromeon.ch/libraries/thor/