Subject: Socket Application
To: None <netbsd-help@netbsd.org>
From: Joe Magee <jmagee@starrider.com>
List: netbsd-help
Date: 09/27/2002 09:10:55
To Giles and Jan and everyone else who responded:

First thanks for all your suggestions.

I must admit that seeing the code in a book, and downloading the source from
the Internet made me suspect that I was the problem and not the code.

The suggestions offered by Geoff and Jeremy fixed the problem. While I had
wondered about the lack of htons() on the port number, I deferred to the
sample code and simply overlooked the fact that the buffer was not cleared
before use. In any case, both of those actions should be done, and once
inserted into the code, it worked.

This includes the statement I made about the code working on linux. While it
did "work" the fact was that both the client and server were using bogus
port numbers--just happened both used the same bogus port number.

Thanks again.

Joe Magee