Problem with Socket In Objective-c

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

  1. macrumors newbie

    Joined:
    Mar 25, 2008
    Location:
    Pakistan
    #1
    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

    Joined:
    Nov 26, 2007
    Location:
    Austin, TX
    #2
    Got some code to show us?

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

    Joined:
    Mar 25, 2008
    Location:
    Pakistan
    #3
    No..!!
    Actually the thing is that when i terminete my server it doesnt close his sockets....:confused:
     
  4. thread starter macrumors newbie

    Joined:
    Mar 25, 2008
    Location:
    Pakistan
    #4
    YES.....
    i got that.....i jst use setsocketopt and my problem is solved....
    Thanks for ur help and thanks to all....:)
     

Share This Page