Re: Detecting when a socket has been closed.
- From: Markus Stoeger <spamhole@xxxxxx>
- Date: Thu, 27 Jul 2006 19:10:46 +0200
Kurt wrote:
If I am using BeginRecieve it won't fire until data is received.
It also fires when the connection is closed. In that case the call to
EndReceive will return 0.
You should also put a try/catch around EndReceive. If it throws, you can
take it as closed too.
Max
.
Relevant Pages
- Re: Why & where is Zone Alarm Plus 3.1.395 dialing out at startup?
... >Vsmon.exe fires up Rnaapp.exe and no matter how many times I click the DUN ... >solutions like setting DUN to "never dial a connection". ... >Is there anyway, short of disabling firewall protection, to stop ZA from ... (comp.security.firewalls) - Why & where is Zone Alarm Plus 3.1.395 dialing out at startup?
... and so far I am regretting it. ... Vsmon.exe fires up Rnaapp.exe and no matter how many times I click the DUN ... solutions like setting DUN to "never dial a connection". ... (comp.security.firewalls) - Re: How to: implement "using" statement and "SqlTransation" class
... Much cleaner w/out the Try/Catch statements... ... >> connection closes when my method is finished using it. ... >> after the USING statement ends, the sql connection object is automatically ... > don't want a transaction hanging around just because an exception other ... (microsoft.public.dotnet.languages.csharp) - Re: Whats finally keyword good for?
... and one did not know what the abort ... Catching all exception in the first place was poor programming at a higher ... one should know the conditions of a try/catch and the ... The only time I have implemeted a try/catch/finally is on a SQL connection ... (microsoft.public.dotnet.languages.csharp) - Re: 80072EFD after Download Box shows up and executes. AOL 9 & wi
... > Kurt Says: Earthlink does not require, or work, with the proxy settings. ... > connection in the control panel after I use Earthlink. ... (microsoft.public.windowsxp.network_web) |
|