CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2007
    Location
    France
    Posts
    329

    Receive after disconnect

    I'm trying to send data through the internet.

    Is the recv() function supposed to receive all data after the send() function has sent everything and disconnected after?
    Or are the two sides supposed to stay connected until the recv() side received all bytes?

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: Receive after disconnect

    Perhaps, this article could help: Graceful Shutdown, Linger Options, and Socket Closure
    Victor Nijegorodov

  3. #3
    Join Date
    Dec 2007
    Location
    France
    Posts
    329

    Re: Receive after disconnect

    Thank you Victor, it did help.
    Last edited by MasterDucky; June 25th, 2013 at 04:42 AM.

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

Featured