From kde-core-devel Thu May 24 19:23:13 2001 From: Kurt Granroth Date: Thu, 24 May 2001 19:23:13 +0000 To: kde-core-devel Subject: Re: KServerSocket port() is wrong X-MARC-Message: https://marc.info/?l=kde-core-devel&m=99073242211974 George Staikos wrote: > > > > Basically, KServerSocket::port() doesn't return the right value. No > > > > matter if I specify the port or use use 0 (pick a random port), the > > > > value returned by the port() function is *always* wrong! > > > > > > That's Thiago's code IIRC. Is it returning random numbers for you? Do > > > you have SOCKS turned on? > > > > Yes, they are random. I have SOCKS support disabled. > > Well I had a very quick glance but I'm just not sure either. Do you > have some example code? From what I can tell, calling > KServerSocket(port, ...) and then calling KServerSocket::port() > doesn't guarantee you'll get the original port number back (unless > I'm missing something). I think you'll have to ask Thiago about > this. That's what I'm experiencing. Calling ::port() seems to have NOTHING to do with what port you specify or what port it's actually sitting on. And it should or the entire method is useless :-) I've Cc: Thiago in case he isn't subscribed to this list. -- Kurt Granroth | http://www.granroth.org KDE Developer/Evangelist | SuSE Labs Open Source Developer granroth@kde.org | granroth@suse.com KDE -- Conquer Your Desktop