socket closure periodic garbage collection

This is a discussion on socket closure periodic garbage collection within the Networking/Device Communication forums, part of the General Programming Boards category; i have a program that openms and closes sockets very often how to periodically close all by chance not correctly ...

  1. #1
    Alessio Stella
    Join Date
    May 2008
    Location
    Italy, Bologna
    Posts
    251

    socket closure periodic garbage collection

    i have a program that openms and closes sockets very often
    how to periodically close all by chance not correctly closed sockets ? do i have to a keep a black list?
    In this case I am talking of a C program under MS Visual 2008 Express Edition using Berkeley sockets (winsock2)

  2. #2
    Registered User C_ntua's Avatar
    Join Date
    Jun 2008
    Posts
    1,853
    I guess look at the error codes and keep a list. Make your own function that will ensure that closes the function depending on error codes

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. garbage collection enabled c++
    By manav in forum C++ Programming
    Replies: 42
    Last Post: 02-15-2008, 01:42 PM
  2. Garbage Collection is not so complicated
    By Nalpdii in forum C Programming
    Replies: 2
    Last Post: 10-08-2007, 12:34 AM
  3. C++ Garbage Collection
    By vaibhav in forum C++ Programming
    Replies: 1
    Last Post: 11-27-2005, 10:26 AM
  4. Garbage Collection
    By Orborde in forum C++ Programming
    Replies: 4
    Last Post: 05-11-2005, 12:18 AM
  5. garbage collection
    By joed in forum C Programming
    Replies: 4
    Last Post: 04-01-2004, 01:47 PM

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