[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: KServerSocket port() is wrong
From: Kurt Granroth <granroth () kde ! org>
Date: 2001-05-24 19:23:13
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic