Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Network
»
closing a TCP socket
Print
Pages: [
1
]
Author
Topic: closing a TCP socket (Read 24532 times)
0 Members and 1 Guest are viewing this topic.
Regen
Newbie
Posts: 42
closing a TCP socket
«
on:
August 04, 2008, 12:39:25 pm »
Hi, What can cause this to happen:
"Failed to close socket"
it is this little line that wont work:
Code:
[Select]
if(Client.IsValid())
Client.Close();
the only thing the socket was used for is to get a clients socket, then copy it to another socket.
Logged
Why can't things just work?
Laurent
Administrator
Hero Member
Posts: 32498
closing a TCP socket
«
Reply #1 on:
August 04, 2008, 01:13:45 pm »
Maybe you already closed the copy ? Which would explain the bug, as the socket still has a valid value, but has been closed.
Logged
Laurent Gomila - SFML developer
Regen
Newbie
Posts: 42
closing a TCP socket
«
Reply #2 on:
August 04, 2008, 01:14:47 pm »
Ah, thats true, i have closed the copy. thank you!
Logged
Why can't things just work?
Print
Pages: [
1
]
SFML community forums
»
Help
»
Network
»
closing a TCP socket