Re: Tcp Sockets Close event

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Haim (haim_at_spetrotec.com)
Date: 04/07/04


Date: Wed, 7 Apr 2004 08:02:06 +0200

Thanks,
I had already read the article
but sill is there a away to detect when the remote side closed the
connection?
in the old vb6 winsock object there was an Event raised when the remote side
Closed the socket connection,
Socket_Closed

"Yan-Hong Huang[MSFT]" <yhhuang@online.microsoft.com> wrote in message
news:hNj453rGEHA.3568@cpmsftngxa06.phx.gbl...
> Hello Haim,
>
> As I understand, the question is: How to get closing socket event in
VB.NET
> application?
>
> In MSDN, we can find one good artilce on it. Please refer to the following
> link:
> "Creating a Multi-User TCP Chat Application"
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnadvnet/ht
> ml/vbnet08282001.asp
>
> It also contains one VB.NET sample on socket data transfer and event
> handling. I think it could be helpful to you. You can download and look
> into the sample code to see how we handle the events generally.
>
> Does that answer your question?
>
> Best regards,
> Yanhong Huang
> Microsoft Community Support
>
> Get Secure! ¨C www.microsoft.com/security
> This posting is provided "AS IS" with no warranties, and confers no
rights.
>



Relevant Pages

  • Re: How to tell when a socket is closed on the other end?
    ... remote server is behaving properly by closing a socket from the server side ... preferably determine if it was closed from the remote end as expected. ... All you know is that the connection did indeed get shut down. ... The SMTP user-level protocol sent "221 Bye", then, my telnet client saw the ...
    (comp.lang.python)
  • Re: SOCKET_ERROR [10054]
    ... using SocketWrench .net component. ... connection was forcibly closed by the remote host. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: getting client ip in sock-client on server
    ... getsockname using PInvoke mechanism. ... will give you the remote address and getsockname will give you the local ... address for the connection. ... socket handle and pass it into these API as parameters. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Unicast UDP Server
    ... when binding the socket. ... You're trying to bind your local socket to a remote address. ... But that would require the remote connection to be Bound to that port ...
    (microsoft.public.dotnet.languages.csharp)
  • [PATCH 0/5] [RFC] AF_RXRPC socket family implementation [try #3]
    ... These patches together supply secure client-side RxRPC connectivity as a Linux ... kernel socket family. ... presentation side is left to the client. ... Each connection goes to a particular "service". ...
    (Linux-Kernel)