Arno Garrels wrote:
> Hi,
> 
> I'm currently porting the TFtpServer to OS X.
> I get error EACCESS on the attempt to bind a socket to port 21 on the
> Mac, higher port numbers work fine. 
> 
> So I searched the internet and found this:
> "When the address type of the socket identified by the
> socket_descriptor is AF_INET, the thread must have retrieve, insert,
> delete, and update authority to the port specified by the
> local_address field. When the thread does not have this level of
> authority, an errno of EACCES is returned."    
> 
> Nice, but does anybody know how to get the required permission?
> I started the app with sudo from the terminal but that didn't work
> either. Firewall is turned off. 

I now tried "sudo ./myserver" and that actually works, my previous 
attempts with "sudo open myserver" obviously did not start the server
as root.

-- 
Arno Garrels
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to