Re: Can't get BSD bind() to work.
Re: Can't get BSD bind() to work.
- Subject: Re: Can't get BSD bind() to work.
- From: Ben Artin <email@hidden>
- Date: Tue, 4 Oct 2005 19:18:02 -0400
I'm trying to create a simple listening socket in my app with BSD
sockets. I am unable to get bind() to work when passing it the port I
want to use, 780.
You need admin privileges to use privileged ports, which means all
ports below 1024. According to /usr/include/sys/errno.h, 13 is EACCESS.
According to bind manpage, EACCESS means that "The requested address is
protected, and the current user has inadequate permission to access
it."
hth
Ben
--
<http://artins.org/ben> | KB1FMP
"Love is an Epic-level challenge." -- Durkon
_______________________________________________
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