It's hard to tell without seeing some code, but I'd suggest checking the return value of all the socket operations to make sure there's no errors.
The order of the socket operations should go:
socket()
** Probably wise to use setsockopt() to set the SO_REUSEADDR flag here **
bind()
listen()
accept()
I'd also suggest maybe just using telnet to try connecting to the server to make sure that side of it works before trying to connect with your client.
Last edited by itsme86; 06-24-2005 at 09:24 AM.
|