I am new to programming sockets and new to linex both.
I have code that creates a socket descriptor and tries to connect to perdue.edu's port 13 (or 23) (time or remote login). I can connect fine to this address and these ports with telnet, but not with my code. I always get ECONNREFUSED. Any ideas why? ( just looking for a few suggestions or pointers or things to test for, I don't need code (probably)).
(Note I did call htonl() to convert the address to the right byte order. (well, not on my first attempt...))
(Sorry no code to post right now, its too embedded in classes to post a reasonable example, I may have to write a small example and see what happens)