Brooks Younce
January 1st, 2005, 04:10 PM
I am using Windows XP, I am writing a simple port scanner, when I use CAsyncSocket to Connect to port 25 on 127.0.0.1 the virtual function OnConnect() is Never Called!! All the other ports from 0 to 1056 call the "OnConnect()" virtual function and give their error code, but port 25 does nothing... I ran command line netstat -a and their is no pending socket connection for port 25, so why is this the only port that does not call the virtual function?? Also I am using Visual Studio 2003.
Because of my program design, I am not able to use CSocket, I must use AsyncSocket. Please any info on this would help, thank you!!
This is what GetLastError returns when I call it immdeditly after calling Connect...
"An established connection was aborted by the software in your host machine."
---------------------
nevermind, I figured out it was Mcafee antivirus causing the problems.
Because of my program design, I am not able to use CSocket, I must use AsyncSocket. Please any info on this would help, thank you!!
This is what GetLastError returns when I call it immdeditly after calling Connect...
"An established connection was aborted by the software in your host machine."
---------------------
nevermind, I figured out it was Mcafee antivirus causing the problems.