Confusion in MSDN about winsock connect()



MSDN About the return value of connect():

"If no error occurs, connect returns zero. Otherwise, it returns
SOCKET_ERROR, and a specific error code can be retrieved by calling
WSAGetLastError.

On a blocking socket, the return value indicates success or failure of
the connection attempt.

With a nonblocking socket, ****the connection attempt cannot be
completed immediately.***** In this case, connect will return
SOCKET_ERROR, and WSAGetLastError will return WSAEWOULDBLOCK. In this
case, there are three possible scenarios:..."

It doesn't say clearly whether on a non blocking socket if the
connection attempt can be completed immediately, that's, connect on
nonblocking socket returns immediately with success.


.



Relevant Pages

  • Re: OWA, Remote Web Workspace problem
    ... published site. ... article form ISAServer.org in the "Verify External Connectivity" section ... Other requests will be answered with the error message: Error Code: 403 ... A successful connection attempt will probably provide with the following ...
    (microsoft.public.isaserver)
  • Re: Winsock provider catalog
    ... PING: transmit failed, error code 65. ... info Using home Internet connection ... info Network connection: Name=Local Area Connection 3, ...
    (microsoft.public.windowsxp.general)
  • Re: Winsock provider catalog
    ... PING: transmit failed, error code 65. ... info Using home Internet connection ... info Network connection: Name=Local Area Connection 3, ...
    (microsoft.public.windowsxp.general)
  • Re: BizTalk 2004 :: WSE attachment nightmare
    ... No success, but an update: ... I googled the error code and only got a single result: ... I cannot find any relevant information why this orchestration is terminating ... > code/orchestration/configuration but cant find a problem. ...
    (microsoft.public.biztalk.general)
  • Re: A FIX A FIX for Windows Update SP2 RC2 not downloading
    ... Remove "online" from address ... > Well I posted before about my SP2 RC2 WU starting going ... > to 1.6MB and then failing, with an error code that was ... > connection with a DL speed of 5K. ...
    (microsoft.public.windowsupdate)