• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Open Transport in OS 9
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Open Transport in OS 9
      • From: Quinn <email@hidden>
    • pppd log
      • From: "Manish Jamadagni" <email@hidden>
  • Prev by Date: Re: OTBufferInfo, et. al.
  • Next by Date: Re: Airport Extreme card and MoreSCF
  • Previous by thread: RE: BSD equivalent of OTInetGetInterfaceInfo
  • Next by thread: pppd log
  • Index(es):
    • Date
    • Thread