[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Bug in KServerSocket
From: Fritz Elfert <felfert () to ! com>
Date: 2001-06-22 20:33:18
[Download RAW message or body]
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 <felfert AT to.com> Thinking Objects Software GmbH
--------------------------------------------------------------------------
>> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic