• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Hanging Sockets
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Hanging Sockets (From: Jaime Magiera <email@hidden>)
 >Re: Hanging Sockets (From: "Justin C. Walker" <email@hidden>)

  • Prev by Date: Re: Hanging Sockets
  • Next by Date: Weird error using gethostbyname
  • Previous by thread: Re: Hanging Sockets
  • Next by thread: Weird error using gethostbyname
  • Index(es):
    • Date
    • Thread