Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Network
»
Terminate blocking functions?
Print
Pages: [
1
]
Author
Topic: Terminate blocking functions? (Read 2309 times)
0 Members and 1 Guest are viewing this topic.
golgoth
Jr. Member
Posts: 99
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.
Logged
Laurent
Administrator
Hero Member
Posts: 32498
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.
Logged
Laurent Gomila - SFML developer
Print
Pages: [
1
]
SFML community forums
»
Help
»
Network
»
Terminate blocking functions?