Connected Status on Sockets
From: BillRay (BillRay_at_discussions.microsoft.com)
Date: 01/05/05
- Next message: Amit Bahree: "Re: Framework 1.0 application looking for 1.1 dll"
- Previous message: Tim Mavers: "Re: Accessing ActiveDirectory through LDAP with .NET"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 5 Jan 2005 14:39:12 -0800
I have created a socket application in C++.NET that connects in non-blocking
mode. All my previous apps of this kind have used blocking mode at the
connection, but in this case I did not want the app to wait if the server was
not available. In the course of doing this, I discovered after several
hours of frustration that the Connected property of the socket is not set in
non-blocking mode even after the connection is completed. Maybe this is
documented someplace, but I could not find it. Is this behavior to be
expected or have I got an error someplace else? I got around this by using
Poll instead to check for the connect status, but I would still like to know
why Connected is not working.
Thanks,
Bill
- Next message: Amit Bahree: "Re: Framework 1.0 application looking for 1.1 dll"
- Previous message: Tim Mavers: "Re: Accessing ActiveDirectory through LDAP with .NET"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|