PDA

View Full Version : Problem with Socket In Objective-c




Shahmeer
Mar 25, 2008, 11:43 PM
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?



ScoobyMcDoo
Mar 26, 2008, 06:21 AM
Got some code to show us?

Perhaps your not properly closing your socket on program exit?

Shahmeer
Mar 27, 2008, 10:15 PM
No..!!
Actually the thing is that when i terminete my server it doesnt close his sockets....:confused:

Shahmeer
Mar 28, 2008, 12:21 AM
YES.....
i got that.....i jst use setsocketopt and my problem is solved....
Thanks for ur help and thanks to all....:)