Re: Binding to a specific IP address
Re: Binding to a specific IP address
- Subject: Re: Binding to a specific IP address
- From: "Justin C. Walker" <email@hidden>
- Date: Sat, 16 Dec 2006 14:33:48 -0800
On Dec 16, 2006, at 14:12 , Christopher Kempke wrote:
[snip]
Everything works until the bind, which returns -1 and an errno of
49 (EADDRNOTAVAIL: can't assign requested address). If I replace
the address with INADDR_ANY, the code works.
Try zeroing out the sockaddr struct before using it. The kernel can
be kind of picky about that.
Justin
--
Justin C. Walker, Curmudgeon at Large
Institute for the Absorption of Federal Funds
-----------
If it weren't for carbon-14, I wouldn't date at all.
-----------
_______________________________________________
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