U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ MT-multithreading and servers » how to exit from Socket.Read()
Re: how to exit from Socket.Read() [message #20402 is a reply to message #20397] Tue, 17 March 2009 08:43 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
darthspawn wrote on Mon, 16 March 2009 12:39

I have a thread that run until the socket is connected and read from it, but I don't have an answer from the server when I want to close the socket.
When my destructor is called my client chrash.. Is possible stop the read or do something that let me close the socket without errors? thanks

Samuele


I think you should use non-blocking reads and/or select.

Mirek
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Stop a thread
Next Topic: Listen data transfered from socket
Goto Forum:
  


Current Time: Sat Oct 17 03:11:50 GMT+2 2026

Total time taken to generate the page: 0.21778 seconds