Re: Hanging Sockets
Re: Hanging Sockets
- Subject: Re: Hanging Sockets
- From: Jaime Magiera <email@hidden>
- Date: Wed, 5 Jul 2006 17:34:12 -0400
On Jul 5, 2006, at 5:03 PM, Justin C. Walker wrote:
If your program is a server, and you get an "address in use" error
when you restart your program,
Yes, this is quite often the situation: a WO application (server) in
dev mode.
you can work around this, normally by using one or both of the
socket options SO_REUSEADDR and SO_REUSEPORT.
Ahhh, I'll have to read up on how to incorporate that into the WO
project.
Their use is described, e.g., in Stevens's Unix Network Programming
(see 2nd or 3rd Ed., V1); or you can find some discussions on-line
with Google (everyone's best friend).
You really didn't give enough information to be sure of what's
going wrong, but I hope this helps.
Yeah, it does. Thanks Justin.
I tried Googling but couldn't quite get the situation I was looking
for. In terms of books, both the Stevens and Singh books are on my
"buy" list this weekend :)
thanks,
Jaime
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden