• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Can't get BSD bind() to work.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Can't get BSD bind() to work. (From: Ken Baer <email@hidden>)

  • Prev by Date: Can't get BSD bind() to work.
  • Next by Date: Re: Can't get BSD bind() to work.
  • Previous by thread: Can't get BSD bind() to work.
  • Next by thread: Re: Can't get BSD bind() to work.
  • Index(es):
    • Date
    • Thread