OT Notifier
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.