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

Author Topic: multiple tcplisteners  (Read 8825 times)

0 Members and 1 Guest are viewing this topic.

Henry

  • 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?

Thanks!

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • 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
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/