From kde-devel Fri Jun 22 20:33:18 2001 From: Fritz Elfert Date: Fri, 22 Jun 2001 20:33:18 +0000 To: kde-devel Subject: Re: Bug in KServerSocket X-MARC-Message: https://marc.info/?l=kde-devel&m=99324238329910 On Fri, 22 Jun 2001, Kurt Granroth wrote: > On Friday 22 June 2001 11:17 am, Herwin Jan Steehouwer wrote: > > Is there a bug in KServerSocket ? > > > > I make a KServerSocket for port 1025, it is free, socket()!=-1, but > > the port() returns 260 insteadof 1025. > > if i terlnet to 260 is is closed and 1025 is open ! > > Yes, this is a known bug. AFAIK, nobody that is familiar with the code has > looked at it, though. > > Basically, you cannot trust that port() will return anything resembling a > useful value. Hmm. 260 == htons(1025) So it's probably useful but simply returned in network byte order. > -- Fritz Elfert Thinking Objects Software GmbH -------------------------------------------------------------------------- >> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<