Comments (6)
I have a correction to make. I don't believe the problem is the address and routing, but rather with the port number being less than 1024. Again though, running as sudo doesn't solve this problem. So I how do I listen to a reserved port? (I am communicating with an external device whose port number is fixed at 1002, so the answer change the port doesn't work!)
from cocoaasyncsocket.
sudo isn't "convincing" enough apparently. When I turn on the setuid bit, change ownership to root, relink to a fixed path dynamic framework, and run, then it open up the port.
Yuck. Yuck.
It looks like I'm going to have to delve into BetterAuthorizationSample and somehow integrate it into CocoaAsync. Given that running on such ports is not exactly uncommon (after all every web server does it), has anybody already done this or do I need to reinvent the wheel?
from cocoaasyncsocket.
This is a disaster. I've spent days trying to get the BetterAuthorizationSample code to work. It appears to do everything fine, no errors generated creating and binding a privileged UDP port. But when I used the BSD socket created by the privileged tool with a CFSocketCreateWithNative, the socket is not functional: it is always silent. This is not a bug in cocoasync per se, but rather something about the complex nature of BetterAuthorizationSample. I know this because a unprivileged port works without the Helper, but as soon as the Helper is invoked it fails.
Horrible!
from cocoaasyncsocket.
Have you tried signing your application? authorization is complicated as it doubles up with the firewall which itselfs needs to sign your app with proper authorizations.
from cocoaasyncsocket.
I didn't, but the example code from Apple doesn't mention anything about code signing. As near as I can tell, it might preclude subsequent authorization requests, but that initial authorization request seems to be accepted, and it still doesn't work.
from cocoaasyncsocket.
This issue has been marked as stale, it will be closed automatically if there is no further activity.
from cocoaasyncsocket.
Related Issues (20)
- Xcode14.0 App Store Connect Operation Error HOT 5
- pod集成,iOS16.0 警告提示
- App Crashes with EXEC_BAD_ACCESS in GCDAsyncSocket.m HOT 4
- If two apps use the same port, I get an error. HOT 1
- Is this still maintained? HOT 1
- Is this library supported for iOS 13+ ? HOT 2
- Error Domain=NSPOSIXErrorDomain Code=60 "Operation timed out" HOT 1
- [!] Error installing CocoaAsyncSocket [!] /usr/bin/git clone https://github.com/robbiehanson/CocoaAsyncSocket.git /var/folders/44/pdz2cl0561z4jh2377tl293h0000gp/T/d20221207-3976-gkz985 --template= --single-branch --depth 1 --branch 7.6.5 HOT 1
- 🦅ALL IN ONE🌎
- crashed on iOS 16.1, SIGTRAP HOT 2
- App crash in Xcode 14 and iOS 16 HOT 6
- how to creat a unix domain socket on iOS device HOT 1
- the app references non-public selectors in cocoaAsyncSocket HOT 1
- [GCDAsyncSocket closeWithError:] crash, iOS16 HOT 4
- Not able to build the framework after upgrading Xcode to 14.3 HOT 1
- Not work with bitcode enable HOT 2
- GCDAsyncSocket with local ip address changed HOT 5
- socket gets disconnected with nil error, as soon as didAccept delegate is called HOT 2
- Privacy Manifest HOT 7
- Is there any plan to update TLS API to Network.framework? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cocoaasyncsocket.