• 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
Re: CFStream Problem on Jaguar
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CFStream Problem on Jaguar


  • Subject: Re: CFStream Problem on Jaguar
  • From: "Koichiro Mino" <email@hidden>
  • Date: Mon, 18 Nov 2002 14:48:52 +0900

Hi, All.
Kris & Becky, thanks for your reply.

Kris, you should be right.
I had sent 8KB of data block repeatedly until the transfer finished
regardless of available buffer size.
Reducing this size to 1KB improved the situation.
Calling CFWriteStreamCanAcceptBytes should be useful.
Then, is there any way to get the size of available socket buffer?
CFWriteStreamCanAcceptBytes just tells me whether I have available buffer,
and not whether I have enough size.
I would like to be assured that I have enough size of available buffer
to send a data block.

Regards,
K.Mino


> From: "Kris Amico" <email@hidden>
>
> I could be wrong here, but I would normally expect anything on top of
> sockets to fail if I tried to send more than 32k in one invocation. Is
this
> what you're doing? If so, you might consider employing buffered transfers
> such that less than 32k is sent at a time. I do not know why you would be
> experiencing this problem with CFStream and not CFSocket. As far as the
> CFNetwork sources are concerned, I don't think they are part of the CFLite
> in the repository. They may not be in there at all. If so, I have not seen
> them yet.
>
> On 11/13/02 6:13 PM, "Koichiro Mino" <email@hidden>
wrote:
>
> > Hi, all.
> >
> > I have an application to send files to printer.
> > It sends data using CFStream.
> > It works fine on OS 10.1.5, but fails on 10.2.
> >
> > Printer reports that expected size of data are not sent.
> > Sniffing packets clarified that some part of data were not
> > sent from the host.
> > But, my code finishes the transfer process without error.
> > CFWriteStreamWrite returns exactly the same size
> > as I tried to send, and CFStreamGetError reports no error.
> >
> > When I send small size of files(30KB or less), the transfer succeeded.
> > Using BSD socket or CFSocket, everything works fine.
> > Are there any differences between CFStream on 10.1.5 and on 10.2?
> >
> > P.S.
> > I downloaded the CoreFoundation project(262) from the Darwin OpenSource,
> > but I can't find CFStream.c in it. Isn't it published?
> >
> >
> > Regards,
> > K.Mino
_______________________________________________
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: CFStream Problem on Jaguar
      • From: Becky Willrich <email@hidden>
  • Prev by Date: Re: Evil Hackers, Spoofing, and PortIDs
  • Next by Date: Re: Evil Hackers, Spoofing, and PortIDs
  • Previous by thread: Re: CFStream Problem on Jaguar
  • Next by thread: Re: CFStream Problem on Jaguar
  • Index(es):
    • Date
    • Thread