Asynchronous endpoint event handler in OS X
Asynchronous endpoint event handler in OS X
- Subject: Asynchronous endpoint event handler in OS X
- From: Michael Paluszek <email@hidden>
- Date: Tue, 19 Feb 2002 09:07:43 -0500
Does anyone know why an event handler for asynchronous TCP/IP would not be
passed the endpoint in the last argument:
pascal void EventHandler( void*, OTEventCode event, OTResult result, void*
cookie )
case T_LISTEN:
ep = (TEndpoint *)cookie; // Works on OS 9.x but not on OS X in my code
The handler is installed using
OTNotifyUPP theHandler = NewOTNotifyUPP(EventHandler);
err = OTAsyncOpenEndpointInContext( OTCreateConfiguration(kTCPName), 0,
&info, theHandler, 0, NULL );
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.