This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: tcp_lo_test.c query


On Thu, 2002-03-07 at 06:05, Kaustubh Purandare wrote:
> Hi,
> 
> The tcp_lo_test.c displays the following result after
> executing on synthetic linux platform.
> 
> Start TCP server - test
> TCP SERVER: Hello eCos network
> Start TCP client - test
> client:started
> TCP SERVER connection from 0.0.0.0
> SERVER : Client is alive. You may continue ....
> PASS:<server returned OK>
> EXIT:<done>
> 
> I understand that it runs a loop back test so the address 
> displayed should be 127.0.0.1 and not 0.0.0.0
> 
> Is there a bug in the test?

The test checks that a connection can be made *to* a server
on the loopback address.  The message you see is where the
connection came *from*.  Since I don't see any explicit
binding on the source address, 0.0.0.0 seems like the right
value.


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]