• 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
OT Notifier
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

OT Notifier


  • Subject: OT Notifier
  • From: Michael Paluszek <email@hidden>
  • Date: Wed, 20 Feb 2002 18:22:47 -0500

I'm still trying to work through the notifier problem. Given a notifier of
the form

static pascal void EventHandler( void* context, OTEventCode event, OTResult
result, void* cookie )
{
TCall mycall;
InetAddress caddr;
TEndpoint *ep;
OSStatus err;
int kSc;

// Endpoint information
EPInfo* epi = (EPInfo*) context;

The asynchronous handler is installed using:

OTNotifyUPP theHandler = NewOTNotifyUPP( EventHandler );

err = OTAsyncOpenEndpointInContext( OTCreateConfiguration(kTCPName), 0,
&info, theHandler, 0, NULL );

On MacOS 9.x cookie in EventHandler contains the endpoint. On OS X it is a
null pointer. I added the context input but noticed on OS 9.x that all I get
is a null pointer for the context. This event handler seems to follow the
documentation and the many pieces of OT sample code (including
OTVirtualServer.)

Basically, I have several controllers communicating with the simulation
(which is simulating several processes). I need to know which endpoint is
incoming so that I can send the data to the correct process.

Does anyone have a suggestion of what I might be doing incorrectly?

Thanks!

Sincerely,

Mike

-------
Michael A. Paluszek
Princeton Satellite Systems, Inc.
33 Witherspoon Street
Princeton, New Jersey 08542-3207
USA
Telephone: (609) 279-9606
Fax: (609) 279-9607
URL: http://www.psatellite.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: OT Notifier
      • From: Jens Bauer <email@hidden>
    • Re: OT Notifier
      • From: Anders Pytte <email@hidden>
    • Re: OT Notifier
      • From: Quinn <email@hidden>
References: 
 >Re: TCP/IP Loopback (From: Josh Graessley <email@hidden>)

  • Prev by Date: Re: TCP/IP Loopback
  • Next by Date: MoreNetworkSetup: Active TCP/IP port
  • Previous by thread: Re: TCP/IP Loopback
  • Next by thread: Re: OT Notifier
  • Index(es):
    • Date
    • Thread