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 #38230 is a reply to message #38229] Fri, 07 December 2012 15:01 Go to previous messageGo to previous message
nlneilson is currently offline  nlneilson
Messages: 644
Registered: January 2010
Location: U.S. California. Mojave &...
Contributor
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.
 
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: Sun May 05 22:38:51 CEST 2024

Total time taken to generate the page: 0.03359 seconds