Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with restarting server




On 17 Aug 2005, at 19:51, ptr wrote:

Hi,
I have a problem with restarting my tcp server. I'm using AF_INET, SOCK_STREAM
sockets. I close server socket and then i want to run server again on
the same port, but I receive error during bind. I must wait from 30secs
up to 2minutes and then it is possible to run server again.

This is normal default behaviour. You can disable it with the SO_REUSEADDR and SO_REUSEPort socket options.


Ffred
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macnetworkprog/email@hidden

This email sent to email@hidden
References: 
 >Problem with restarting server (From: ptr <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.