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 » WebSockets non blocking mode?
WebSockets non blocking mode? [message #47074] Mon, 28 November 2016 23:06 Go to next message
Mindtraveller is currently offline  Mindtraveller
Messages: 917
Registered: August 2007
Location: Russia, Moscow rgn.
Experienced Contributor

TcpSocket supports non blocking mode along with SocketWaitEvent class to wait for multiple sockets simultaneously. I couldn't find a way to asynchronously read incoming data with WebSocket as well as couldn't find a way to wait for multiple WebSockets until one of them receives a message. So I have to create one thread per each WebSocket which is really bad decision for production server with 1000+ connections. Does U++ lack async WebSOcket support, or my approach is totally wrong here?
Thanks in forward.

[Updated on: Tue, 29 November 2016 12:03]

Report message to a moderator

Re: WebSockets non blocking mode? [message #47081 is a reply to message #47074] Tue, 29 November 2016 21:36 Go to previous messageGo to next message
Mindtraveller is currently offline  Mindtraveller
Messages: 917
Registered: August 2007
Location: Russia, Moscow rgn.
Experienced Contributor

OK, it looks like I'll have to implement it myself.
Re: WebSockets non blocking mode? [message #47110 is a reply to message #47081] Thu, 08 December 2016 09:37 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
That would definitely be a nice addition. Bit hard to do though.

Mirek
Previous Topic: bug in CoWork since C++11
Next Topic: How to create sockets that don't block the GUI?
Goto Forum:
  


Current Time: Fri Apr 19 22:57:32 CEST 2024

Total time taken to generate the page: 0.04262 seconds