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

Author Topic: Terminate blocking functions?  (Read 2331 times)

0 Members and 1 Guest are viewing this topic.

golgoth

  • Jr. Member
  • **
  • Posts: 99
    • View Profile
Terminate blocking functions?
« on: November 04, 2010, 07:10:41 pm »
Greetings,

Been playing around Sockets and I like the blocking behavior of sf::TcpListener::Accept but I`m wondering how to terminate it if there is no incoming connection? If that is possible.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Terminate blocking functions?
« Reply #1 on: November 04, 2010, 07:32:01 pm »
You can set the socket as non-blocking, and then perform polling.
Laurent Gomila - SFML developer

 

anything