How to prevent a POSIX socket from using a cellular connection?
How to prevent a POSIX socket from using a cellular connection?
- Subject: How to prevent a POSIX socket from using a cellular connection?
- From: Jens Alfke <email@hidden>
- Date: Mon, 08 Dec 2014 13:33:57 -0800
I need to (optionally) prevent a TCP socket from being opened over a cellular connection. The Apple docs describe how to do this when using NSURLConnection or CFStream APIs, but the code in question uses the POSIX/BSD socket API. (Not my choice; I'm using GCDAsyncSocket and that's how it works.)
Is there some setsockopt mode, equivalent to kCFStreamPropertyNoCellular, to disable cellular networking? I couldn't find it in the man page.
—Jens
_______________________________________________
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