Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ MT-multithreading and servers » [SOLVED] TcpSocket Connect error
Re: TcpSocket Connect error [message #42544 is a reply to message #42425] Sun, 23 March 2014 17:16 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13984
Registered: November 2005
Ultimate Member
I am sorry for the delay, I had to think this through....

I am afraid I would not be happy with this change as proposed. The problem is that one of aims of non-blocking sockets was ability to provide the fully asynchronous mode of operation, as e.g. demonstrated in reference/GuiWebCrawler, where a multitude of HttpRequests is running concurently, in single thread.

By adding Wait into Connect in this exact way, this would no longer be possible, as Connect would start waiting for the connection (would be now blocking).

That said, I understand that current behaviour is not quite correct too, I just do not see the 'right' solution here now....

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: SSL handshake error
Next Topic: How to use Skylark on external server
Goto Forum:
  


Current Time: Thu Jun 06 02:56:21 CEST 2024

Total time taken to generate the page: 0.01738 seconds