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 » Developing U++ » U++ Developers corner » Help needed with link errors (serversocket)
Re: Help needed with link errors (serversocket) [message #48519 is a reply to message #48518] Wed, 12 July 2017 23:08 Go to previous messageGo to previous message
Oblivion is currently offline  Oblivion
Messages: 1094
Registered: August 2007
Senior Contributor
Hello Imos,

Quote:

Now I am going to try it using non-blocking approach and single thread if possible... Is it possible to use non-blocking socket using the TcpSocket class?


Yes it is possible to use non-blocking socket using the TcpSocket class.
TcpSocket class allows blocking, non-blocking, and time-constrained operations.
You have to set Timeout value to 0 to put TcpSocket in a non-blocking mode.
But I suggest you first reading the TcpSocket api docs before you plunge into the world of non-blocking sockets, and then get yourself familiar with U++ core classes & concepts.

Non-blocking socket operations can easily get tricky and complex.
However, there are ways to reduce complexity.
Below you can find a queue model designed exactly for non-blocking socket operations.
It also contains an example code called ClientSockets, which is actually a non-blocking version of SocketClient example with multiple requests.
But it requires some knowledge of U++ callbacks, and C++11 lambdas.

Should you have any further qustions, I may be able to answer them.

Best regards,
Oblivion



[Updated on: Wed, 12 July 2017 23:10]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Choosing the best way to go full UNICODE
Next Topic: SFTP or full SSH2 support for U++?
Goto Forum:
  


Current Time: Thu May 16 05:08:07 CEST 2024

Total time taken to generate the page: 0.02441 seconds