Qt-interest Archive, March 2002
synchronous sockets, block
Message 1 in thread
I _really_ need to implement synchronous (i.e. blocking) sockets. QSocket is
a great class and I appreciate that it is asynchronous but I don't _want_
asych sockets. Just trust me on this.
So I tried implementing a solution involving QWaitCondition variables but it
seems to me that when placing a single-threaded app like mine to sleep using
a QWaitCondition, the QSocket will never speak up and send its signal.
What options do I have? Has anyone implemented synchronous sockets? Has
anyone got any other suggestions? I'd rather not move all of my socket stuff
to a separate thread... if I'm going to do that, I'll write my own socket
code that is synchronous, does not rely on Qt, and works in Windows and Linux.
Message 2 in thread
On Friday 15 March 2002 14:59, you wrote:
> I _really_ need to implement synchronous (i.e. blocking) sockets. QSocket
> is a great class and I appreciate that it is asynchronous but I don't
> _want_ asych sockets. Just trust me on this.
Sorry, I can't trust you just yet. Can you elaborate as to why you need
blocking sockets so bad?
-Justin