Re: CFsockets vs. BSDsockets
Re: CFsockets vs. BSDsockets
- Subject: Re: CFsockets vs. BSDsockets
- From: Douglas Davidson <email@hidden>
- Date: Fri, 20 Jan 2006 10:12:41 -0800
On Jan 20, 2006, at 10:05 AM, Fredrik H. Larsen wrote: I'm just wondering what the main difference is, and if I should use CFsockets over BSDsockets? In addition, is there a way to force terminate the open ports related to an application? I'm struggling alot with "bind error: socket already in use"
It isn't really a choice of one or the other--CFSocket is a thin wrapper intended primarily to allow BSD sockets to serve as run loop sources. Most socket functionality is left to the BSD socket; CFSocket is focused on what is necessary to integrate with CFRunLoop. As for your other question, you probably need to use SO_REUSEADDR.
Douglas Davidson
|
_______________________________________________
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