[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyKDE] network programming
From: Phil Thompson <phil () river-bank ! demon ! co ! uk>
Date: 2001-01-13 0:41:59
[Download RAW message or body]
Frido Ferdinand wrote:
>
> Hi,
>
> A short question but I'm sure the answer is pretty complex. What is
> currently the best way to do asynchronous (I think that's the correct
> term) network connections ? I'm currently building an app that makes
> lot's of network operations and when there's no data coming in the whole
> GUI blocks. It's comparable to Netscape when it's trying to resolve a
> hostname and doesn't update the GUI. I've read in the QT doc's that
> there is quite a nice framework for doing this (QNetworkProtocol,
> QNetworkOperation) but I'm not sure if PyQT supports this. Are there
> any other alternative's ?
Look at QSocket, QServerSocket and (particularly) QSocketNotifier. I
didn't implement the first two until fairly recently as Python has its
own portable socket interface. Then I found out the hard way that it's
not as portable as it first appears. Fortunately the Qt classes are much
better.
Phil
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic