Ungraceful connection close

This is a discussion on Ungraceful connection close within the Windows Programming forums, part of the Platform Specific Boards category; I have a small problem with the Ungraceful remote connection close. This causes my program to stop responding. Example: Let ...

  1. #1
    * Death to Visual Basic * Devil Panther's Avatar
    Join Date
    Aug 2001
    Posts
    768

    Ungraceful connection close [nm]

    I have a small problem with the Ungraceful remote connection close.

    This causes my program to stop responding.

    Example:
    Let say my program(server) is listenning on a port, and I connect that port with a telnet client, but when I'm finished i don't disconnect from the server, but just clicking the X... that makes the server to stop responding.

    How can I prevent this?


    Thanks.



    I'm using Win98, Borland C/C++ 5.5, and the winsock lib.
    Last edited by Devil Panther; 07-26-2003 at 09:33 AM.
    "I don't suffer from insanity but enjoy every minute of it" - Edgar Allen Poe

    http://www.Bloodware.net - Developing free software for the community.

  2. #2
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    Okay. Your description is not clear. What do you mean "and I connect that port with a telnet client?" Are you working on the server or the client?

    What I/O model does the program utilize?

    Kuphryn

  3. #3
    * Death to Visual Basic * Devil Panther's Avatar
    Join Date
    Aug 2001
    Posts
    768
    Never mind... I found the problem, I forgot to do an error check on recv()
    "I don't suffer from insanity but enjoy every minute of it" - Edgar Allen Poe

    http://www.Bloodware.net - Developing free software for the community.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Non-blocking socket connection problem
    By cbalu in forum Linux Programming
    Replies: 25
    Last Post: 06-03-2009, 02:15 AM
  2. Close an HTTPListenerResponse.OutputStreram
    By George2 in forum C# Programming
    Replies: 0
    Last Post: 04-23-2008, 11:00 PM
  3. open() and close()
    By SoFarAway in forum C Programming
    Replies: 3
    Last Post: 04-08-2005, 01:16 PM
  4. Headers that use each other
    By nickname_changed in forum C++ Programming
    Replies: 7
    Last Post: 10-03-2003, 04:25 AM
  5. Ghost in the CD Drive
    By Natase in forum A Brief History of Cprogramming.com
    Replies: 17
    Last Post: 10-12-2001, 05:38 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21