Receive after disconnect
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Receive after disconnect

Hybrid View

  1. #1
    Join Date
    Dec 2007
    Location
    France
    Posts
    229

    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
    Wallisellen (ZH), Switzerland
    Posts
    17,467

    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
    229

    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
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center