Results 1 to 12 of 12

Thread: TcpClient

  1. #1

    Thread Starter
    PowerPoster sunburnt's Avatar
    Join Date
    Feb 2001
    Location
    Boulder, Colorado
    Posts
    1,403

    TcpClient

    How do you know when the remote host has closed the connection of your TcpClient / associated NetworkStream?
    Every passing hour brings the Solar System forty-three thousand miles closer to Globular Cluster M13 in Hercules -- and still there are some misfits who insist that there is no such thing as progress.

  2. #2
    Guru Yonatan's Avatar
    Join Date
    Apr 1999
    Location
    Israel
    Posts
    892
    When you receive a TCP packet with RST in its header, of course.

  3. #3
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    What if the remote host crashes?
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  4. #4
    Guru Yonatan's Avatar
    Join Date
    Apr 1999
    Location
    Israel
    Posts
    892
    Won't that still happen?
    That or you'll get some ICMP error, I forget.

  5. #5
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    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.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  6. #6
    New Member
    Join Date
    May 2007
    Posts
    3

    Re: TcpClient

    Im trying to send a TCP RST using VB6 or VB.net.
    Could you tell me how?

    Thanks in advance.

    Alfredo

  7. #7
    New Member
    Join Date
    May 2007
    Posts
    3

    Re: TcpClient

    Quote Originally Posted by adelallata
    Im trying to send a TCP RST using VB6 or VB.net.
    Could you tell me how?

    Thanks in advance.

    Alfredo

  8. #8
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    Re: TcpClient

    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 ...
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  9. #9
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: TcpClient

    It made you reply didn't it
    I don't live here any more.

  10. #10
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    Re: TcpClient

    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 ...
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  11. #11

    Thread Starter
    PowerPoster sunburnt's Avatar
    Join Date
    Feb 2001
    Location
    Boulder, Colorado
    Posts
    1,403

    Re: TcpClient

    Quote Originally Posted by CornedBee
    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 ...
    What a coincidence, that's exactly what I'm getting as the thread starter
    Every passing hour brings the Solar System forty-three thousand miles closer to Globular Cluster M13 in Hercules -- and still there are some misfits who insist that there is no such thing as progress.

  12. #12
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    Re: TcpClient

    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.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width