• 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: Robert Kuilman <email@hidden>
  • Date: Sun, 21 Sep 2003 01:38:02 +0200

The exact notifier code i use is below.
to me, it seems perfectly fine, but apparently it isn't because it doesnt work :)

I'd like to hear your comment on it.

/*
* CARBON CODE SNIPPET
*/
pascal void
MX_NOTIFIER_FUNCTION( void *ep, OTEventCode event, OTResult result, void *cookie )
{
#pragma unused( result )

InetMailExchange myRecordSet;

switch( event )
{
case T_DNRMAILEXCHANGECOMPLETE:
myRecordSet = *(InetMailExchange *)cookie;

RK_MX_Done = true;
std::cout << "result!\n";
break;

default:
std::cout << "different result!\n";
break;
}
}
/*
* END
*/


Robert K.

web: http://halfduplex.net/
email: email@hidden
------------------------------------------------------------------------ ---------------------

On Sunday, September 21, 2003, at 01:16 AM, Tomas Zahradnicky wrote:

Tomas and Vincent!

Thank you for your reply! i got things to work (a bit), i installed a notifier, and now it gets called, however,
when in the notifier function, i call the following code:

InetMailExchange myRecordSet = *(InetMailExchange*)cookie;

the structure gets returned empty (whereas 'cookie' is the given function variable, and is supposed to be the variable containing the MX-Record structure (according to the OpenTransport docs online)


Your notifier can be called due to several reasons. It reason why you get empty result would be that you react to a wrong event. That might be the problem. You should post your notifier code in order to get helped :)

-Tomas
--
Ing. Tomas Zahradnicky, Jr.
Production Manager, 24U Software
Associate Member, Filemaker Solutions Alliance
mailto:email@hidden
http://www.24uSoftware.com
_______________________________________________
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.

  • Follow-Ups:
    • Re: MX Record lookup
      • From: Tomas Zahradnicky <email@hidden>
  • Prev by Date: Re: MX Record lookup
  • Next by Date: Determining if the current network location is "Automatic"
  • Previous by thread: Re: MX Record lookup
  • Next by thread: Re: MX Record lookup
  • Index(es):
    • Date
    • Thread