Quote:
|
Originally Posted by Stevhp
I'm using Solaris.
|
1. That doesn't indicate whether it's big endian or little as Solaris runs on both SPARC and x86.
2. Put "perror("connect") in the path immediately following a failed connect.
3. Do netstat -a on the target machine and confirm that there really is a LISTEN on the port you are trying to connect to.
4. before the connect() do the following
printf("connect(%s:%d)\n",
inet_ntoa(sad.sin_addr),ntohs(sad.sin_port));