Open Transport in OS 9
Open Transport in OS 9
- Subject: Open Transport in OS 9
- From: Jianzhe Li <email@hidden>
- Date: Tue, 27 Jan 2004 09:34:19 -0800 (PST)
Hi,
I have a carbon app which must run on OS 9 and OS X. I
use endpoint to send files to a server. It works well
in 0S X, but it doesn't work very well in OS 9.
If I send a small file( less than 100K), it works
fine. If I send a large file(more than 400K), i will
crash after it send some pieces of data.
Here is my way to upload a file:
1) create an synchronous ,blocking endpoint
// I use the same thing with the SimpleDownloadHTTP
sample code
2) OTSnd(ep,"POST /saveFile.asp xxxxx xxxxxx ")
// I use HTTP/1.1 to upload a file
3) InstallEventLoopTimer(), and fire a function evry
50 milliseconds to send a chunk of the file
// I need show the uploading progress and allow user
to stop the uploading at any time
4) OTRcv(ep, xxx) to get the response from the server.
I am new on Mac, and I am very confused about the
problem.
Can I use the EventLoop timer in OS 9 ?
Can anybody give me some suggestions?
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/
_______________________________________________
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.