Problem with Socket In Objective-c

Discussion in 'Mac Programming' started by Shahmeer, Mar 25, 2008.

  1. macrumors newbie

    hi frndz,
    i wana discusss a problem related my Client/server application.
    while running properly if i terminate my Server application and then restart,my socket remains busy for about 15 to 30 sec..
    do anyone has any idea?
  2. macrumors 65816

    Got some code to show us?

    Perhaps your not properly closing your socket on program exit?
  3. macrumors newbie

    Actually the thing is that when i terminete my server it doesnt close his sockets....:confused:
  4. macrumors newbie

    i got that.....i jst use setsocketopt and my problem is solved....
    Thanks for ur help and thanks to all....:)

Share This Page