Re: CFSocketSetAddress failing
Re: CFSocketSetAddress failing
- Subject: Re: CFSocketSetAddress failing
- From: Tomas Franzén <email@hidden>
- Date: Mon, 26 Sep 2005 01:30:16 +0200
On Sep 26, 2005, at 01:11, Bryan Christianson wrote: I'm not sure how to do this in CFSocket. Using BSD sockets (the underlying implementation) you would set the socket options SO_REUSEADDR before binding the endpoint. error = setsockopt(mSocket, SOL_SOCKET, SO_REUSEADDR, sa, sizeof(struct sockaddr_in));
Bryan - thank you! That worked perfectly. I simply acquired the native socket handle with CFSocketGetNative and used your code on it.
Thanks again,
|
_______________________________________________
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