
WinSock function "connect" returns unknown error
Hello,
I am trying to connect to a host computer using the WinSock function,
connect, but, the function returns an error of -1. This error is not
covered in the MSDN help files. Prior to calling connect, I successfully
created a socket by making the following call: hSock = ::socket(AF_INET,
SOCK_STREAM, 0);. I then called WSAAsyncGetHostByName (m_hWnd,
WSCB_GETHOST, host, (char FAR *) pm_szBuf, 2048); which was also
successful. Any ideas of what I'm not doing correctly?
Sincere Regards,
Tom