Re: Not able to get success with setsockopt
Re: Not able to get success with setsockopt
- Subject: Re: Not able to get success with setsockopt
- From: "Justin C. Walker" <email@hidden>
- Date: Fri, 17 Feb 2006 06:57:41 -0800
On Feb 17, 2006, at 05:02 , innovator information wrote:
Hello,
I am not able to pass through setsockopt in Mac OS Tiger.
setsockopt( socketFd, SOL_SOCKET, SO_BROADCAST, &cOptVal, sizeof(char)
where cOptVal is 1.
It is always returning < 0.
what is wrong with this.
A return value of "-1" from a system call is usually accompanied by
an explanation in the global "errno" (see the man page for setsockopt
()). That will tell you what is wrong.
Regards,
Justin
--
Justin C. Walker, Curmudgeon-At-Large
Director
Institute for the Enhancement of the Director's Income
--------
"Weaseling out of things is what separates us from the animals.
Well, except the weasel."
- Homer J Simpson
--------
_______________________________________________
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