• 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: MX Record lookup
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MX Record lookup


  • Subject: Re: MX Record lookup
  • From: Vincent Lubet <email@hidden>
  • Date: Sat, 20 Sep 2003 11:36:24 -0700

Try kDefaultInternetServicesPath, and it should work as expected:

inetServicesRef = OTOpenInternetServicesInContext(configurationRef, 0, &err, contentPtr);

No need to pass open flags.

Vincent

On Sep 20, 2003, at 11:25 AM, Robert Kuilman wrote:

Hey all!

I've been struggling with this code for a while now.
I want to lookup MX-Records, thus, using the OpenTransport API
descriptions, i created the following piece of code:

/*
* CARBON CODE SNIPPET
*/
OSStatus err = noErr;
InetSvcRef inetServicesRef;
OTClientContextPtr contentPtr;
OTConfigurationRef configurationRef;

err = InitOpenTransportInContext(kInitOTForApplicationMask,
&contentPtr);

configurationRef = OTCreateConfiguration("udp");
if( configurationRef == NULL ) { std::cout << "invalid
config_ref!\n"; }

inetServicesRef = OTOpenInternetServicesInContext(configurationRef,
kO_NDELAY, &err, contentPtr);
// ....
/*
* END
*/

but, running this code results in inetServicesRef being NULL and a
-3282 error, aka, bad Configuration ref. I tried replacing it with
'kUDPName' and even 'kTCPName' (which obviously is the wrong protocol
for DNS, but tried anyway).

Anyone can give me any insight into my problem?

Thanks in advance!

Robert K.

web: http://halfduplex.net/
email: email@hidden
----------------------------------------------------------------------- -
---------------------
_______________________________________________
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.
_______________________________________________
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: 
 >MX Record lookup (From: Robert Kuilman <email@hidden>)

  • Prev by Date: MX Record lookup
  • Next by Date: Re: MX Record lookup
  • Previous by thread: MX Record lookup
  • Next by thread: Re: MX Record lookup
  • Index(es):
    • Date
    • Thread