Re: crash when Notifier installed
Re: crash when Notifier installed
- Subject: Re: crash when Notifier installed
- From: michael ferraro <email@hidden>
- Date: Thu, 10 Jul 2003 12:11:13 -0400
Hello --
I cut down my previous post to this because the list-admin rejected the
previous
larger one.
static int otu_InitOT (Tcp *xx)
{
if (gDebug)
post ("Entering otu_initOT");
if (InitOpenTransportInContext(kInitOTForExtensionMask,
&thisOTContext)) {
post ("tcp_open: Could not initialize OpenTransport");
return FALSE;
}
return TRUE;
}
static int otu_Endpoint (Tcp *xx)
{
OSStatus err;
int wcount;
if (gDebug)
post ("Entering otu_Endpoint");
//
// Create a TCP endpoint
//
if (gYieldingNotifierUPP == NULL) {
gYieldingNotifierUPP = NewOTNotifyUPP (YieldingNotifier);
}
xx->ep = nil;
err = OTAsyncOpenEndpointInContext (OTCreateConfiguration(kTCPName),
0, nil, gYieldingNotifierUPP, xx, thisOTContext);
if ( err != kOTNoError ) {
post ("ERROR: OTAsyncOpenEndpoint failed with %d", err);
return FALSE;
}
//
// Idle while waiting for endpoint to complete
//
for (wcount = 1; wcount < 10000; wcount++) {
if (xx->ep)
break;
if ((wcount % 1000) == 0)
post ("Waiting for OPEN");
SystemTask();
}
if (xx->ep == nil) {
post ("Open timeout for: %s at %d", xx->host, xx->port);
return FALSE;
}
return TRUE;
}
Thanks
Michael
_______________________________________________
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.