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

Author Topic: Multithread Server  (Read 12392 times)

0 Members and 1 Guest are viewing this topic.

lohr

  • Newbie
  • *
  • Posts: 15
    • View Profile
Multithread Server
« on: July 01, 2008, 11:28:48 am »
Hi,

I wanted to ask if there is any Code Example for a MultiThread Server?
I know SFML has the Selector Function but it is more comfortable with a MultiThread Server...

Best regards,
lohr

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Multithread Server
« Reply #1 on: July 01, 2008, 12:52:54 pm »
Hi

There's not much to say about a multi-threaded server, the only thing it does is create a new thread for each new connexion, instead of handling all clients in the same thread. All the rest is not specific to the server type and will be the same for both types.
Laurent Gomila - SFML developer