• 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: Error -3200 with Endpoint type kRawIPName
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error -3200 with Endpoint type kRawIPName


  • Subject: Re: Error -3200 with Endpoint type kRawIPName
  • From: "Duane Murphy" <email@hidden>
  • Date: Thu, 31 Oct 2002 09:26:24 -0800

--- At Thu, 31 Oct 2002 17:49:00 +0100, Robert Kuilman wrote:

>Hey all!
>
>i am trying to open a raw ip socket... with the following code:
>
> OSStatus err;
> OTConfiguration *theConfig = OTCreateConfiguration(kRawIPName);
>
> ep = OTOpenEndpointInContext(theConfig, 0, nil, &err, nil);
>
> if (err == kOTNoError) {
> err = OTBind(ep, nil, nil);
> }
>
> return (err);
>
>
>(i put OTCreateConfiguration not in the OTOpenEndpointInContext
>function, to trace the origin of the error)
>creating the config goes OK, but when i try to open the endpoint, i get
>a -3200 error on result...

kEPERMErr = -3200, /* Permission denied */

On OS X Raw IP sockets are a privileged operation. You must be root to
open a Raw IP socket. There is sample code available I think called
AuthSample that shows what you can do to get authorization.

>when i use kTCPName as configuration type, everything goes OK....
>searching the ADC gave me ''look in OpenTransport.h for a description,
>somehow, i cant find it in OpenTransport.h (ProjectBuilder, MacOS X
>10.2.1)
>
>anyone got a sollution for this ?

Your code just got a tad more complicated. :-)

...Duane
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.

References: 
 >Error -3200 with Endpoint type kRawIPName (From: Robert Kuilman <email@hidden>)

  • Prev by Date: Re: Error -3200 with Endpoint type kRawIPName
  • Next by Date: Re: Error -3200 with Endpoint type kRawIPName
  • Previous by thread: Re: Error -3200 with Endpoint type kRawIPName
  • Next by thread: CFSocket & SSLHandshake
  • Index(es):
    • Date
    • Thread