RE: Listening on system restricted ports
RE: Listening on system restricted ports
- Subject: RE: Listening on system restricted ports
- From: "Jamie Wood" <email@hidden>
- Date: Fri, 25 Mar 2005 18:23:03 -0800
My suggestion would be to have your helper tool open the socket, bind to the
restricted port, and then pass the file descriptor back to your main program
via a Unix domain socket. Check out MoreAuthSample for details:
http://developer.apple.com/samplecode/MoreAuthSample/MoreAuthSample.html
Hope this helps,
Jamie
From: OL&L Lists <email@hidden>
To: email@hidden
Subject: Listening on system restricted ports
Date: Fri, 25 Mar 2005 18:00:32 -0800
I need to bind to restricted ports (below 1024). I can't use a helper tool
because helper tools are supposed to be one shot programs. What is the
correct way to do this on OS X? Can I use a helper tool to elevate a
listening process's privileges, bind to a restricted port, then lower the
listener's privileges? Also, I would like to be able to do so from both
Java and C.
Thanks,
Michael
Orbital Launch & Lift, Inc.
http://www.orbitallaunch.com
_______________________________________________
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
_______________________________________________
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