Re: Asynchronous endpoint event handler in OS X
Re: Asynchronous endpoint event handler in OS X
- Subject: Re: Asynchronous endpoint event handler in OS X
- From: Jens Bauer <email@hidden>
- Date: Tue, 19 Feb 2002 15:21:14 +0100
Hi Michael,
On Tue, 19 Feb, 2002, Michael Paluszek <email@hidden> wrote:
>
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
You're sure it's T_LISTEN and not T_OPENCOMPLETE ?
>
The handler is installed using
>
>
OTNotifyUPP theHandler = NewOTNotifyUPP(EventHandler);
>
>
err = OTAsyncOpenEndpointInContext( OTCreateConfiguration(kTCPName), 0,
>
&info, theHandler, 0, NULL );
Love,
Jens
--
Jens Bauer, Faster Software.
_______________________________________________
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.