How do you know when the remote host has closed the connection of your TcpClient / associated NetworkStream?
Printable View
How do you know when the remote host has closed the connection of your TcpClient / associated NetworkStream?
When you receive a TCP packet with RST in its header, of course. ;)
What if the remote host crashes?
Won't that still happen?
That or you'll get some ICMP error, I forget.
I think only the remote computer itself sends RST packets. So if it crashes then all packets would time out. At least that's what I think.
On the other hand, if only the responding app crashes then you get RST packets.
Im trying to send a TCP RST using VB6 or VB.net.
Could you tell me how?
Thanks in advance.
Alfredo
:wave:Quote:
Originally Posted by adelallata
Let's see. You revived a 4-year-old thread about C# to ask a question about VB/VB.Net. Then you waited a full 4 minutes before bumping the thread. Hmm ...
It made you reply didn't it :D
Yes, but there's no hope of actually getting a useful answer from me.
Of course, if he wants his mailbox full of notifications for posts that have no value for him ... :D
What a coincidence, that's exactly what I'm getting as the thread starter :ehh:Quote:
Originally Posted by CornedBee
That's why it's rude to wake zombies in the first place, I know. But now that it's been woken, the best thing for you would probably to just unsubscribe.