Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error -3212 ???



I suspect you don't have permission to bind to port 605
since it is a "protected" port under BSD UNIX. This is
similar to the ping problem under OS X you may have seen
discussed here earlier. Your program needs to be SUID root,
or you need to use a companion SUID root application to open
the port for you.

Unfortunately, there's no good way to do this from a PowerPlant
OT application. SUID doesn't work for CFM apps, so you have
to build as mach-o using CW early access.

Another problem is you don't really want your entire server app
to be SUID root as this has significant security implications.
In order to have an SUID root companion open the port for you and
pass back an open socket you need to use native BSD calls.
There's no easy way to wrap an OT endpoint around a BSD
open socket.

I'd love for someone to point out an easy solution.

I'm re-writing my apps in Cocoa/Objective-C after pursuing
similar questions at WWDC.

- Peter


At 11:15 AM -0400 6/13/01, Gabriel Beauchemin wrote:
I'm porting (carbonizing) a server type app to X. The server uses the
powerplant network/thread classes. Now in classic everything works fines,
but when it try to run on X I get an error while binding the listener
connection (ip =0, port=605, my listening port). The docs are not very
helpful of the -3212 error (kEACCESErr) I get.

Maybe this isn't the correct list to post this question, but at least a
mention in the OT docs would help...

Gabriel Beauchemin, R & D
Teamsoft Inc. 50 rue Queen, bureau #304, Montrial, (Qc), Canada, H3C 2N5
tel.: +1 (514) 875-2231 (ext. 115), fax.: +1 (514) 875-2401
Mailto:email@hidden Website: http://www.teamsoft.com

--


References: 
 >Error -3212 ??? (From: Gabriel Beauchemin <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.