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 » How to create sockets that don't block the GUI?
Re: How to create sockets that don't block the GUI? [message #38231 is a reply to message #38230] Fri, 07 December 2012 16:00 Go to previous messageGo to previous message
lectus is currently offline  lectus
Messages: 329
Registered: September 2006
Location: Brazil
Senior Member
nlneilson wrote on Fri, 07 December 2012 09:01

Also Zbych is correct that the transfer of data should be limited for transfer per second. Put a Sleep(10); between each transfer if necessary, slower computers take more time.

Remember each transfer is a line ending with \0, I transfer 50 'lines' at a time each second without a problem.
It's the make/break of the connection that takes time as the actual transfer is very fast.

The socket is used to transfer data from a C++ app to a Java GUI app with less that 5% CPU usage.

This may not directly relate to your GUI lock but the concepts may help.


Yes, every detail is great help. Thanks.

What do you mean that line ending is \0. Isn't it \n?
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
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: WebSockets non blocking mode?
Next Topic: SKYLARK js: I offer that we expanded the UxGet function a little with parameter callback
Goto Forum:
  


Current Time: Tue Apr 29 08:42:37 CEST 2025

Total time taken to generate the page: 0.05516 seconds