Carbon Async TCP/IP server problems(using OT).
Carbon Async TCP/IP server problems(using OT).
- Subject: Carbon Async TCP/IP server problems(using OT).
- From: "Francois Cournoyer" <email@hidden>
- Date: Wed, 19 Jun 2002 11:50:47 -0400
- Thread-topic: Carbon Async TCP/IP server problems(using OT).
Hi,
I am currently in the process of carbonising a PPC plugin that serves as a TCP/IP bridge for an application(that can be used as a client or a server), on which you can be in a sync or async connection. It is compiled as an Extention and not an application.
In all, the synchronous part of the server seems to works pretty fine.
The problem is with the Asynchronous part of the server.
Since the previous programmer was using SystemTasks inside interrupts, I had to change those to DeferredTasks(which from what I read in the various tech notes, should be safe enough)
Anyway, here's the problem:
When connecting, it will receive the T_LISTEN event, then the T_ACCEPTCOMPLETE(which creates and schedules the CSocket::AcceptTaskComplete deferred task), placing a break point in this class procedure shows that it indeed goes in.
then, nothing else happens. (of course the client will "hang" waiting for an answer from the server) but the server will just return to its idle state. When shutting the server it'll receive the T_UNBINDCOMPLETE event, so it shows that it's was still running fine.
What I don't understand is why there's no T_PASSCON or T_DATA(if it gets in first for some reasons) events comming in?
The code is almost identical to the previous version(which was using systemtasks) except that now it uses the Deferredtasks, as well as the *InContext version of the OT Calls (EG: OTCreateDeferredTaskInContext instead of OTCreateDeferredTask)
I've digged around apple's documentation over and over, and find it pretty hard to find anything, as all the samples and documentations still seem to be Pre Mac OS X. and seems to have a sever lack of documentation for Open Transport with Carbon(except what API is or not supported)
Any insight will be of course greatly appreciated.
PS:I am still a bit of a beginner with OT, and still learning. Please be gentle :)
Regards,
Francois Cournoyer
Integration New Media
_______________________________________________
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.