• 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: readInBackgroundAndNotify & Socket
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: readInBackgroundAndNotify & Socket


  • Subject: Re: readInBackgroundAndNotify & Socket
  • From: email@hidden
  • Date: Tue, 8 Oct 2002 17:45:31 +0200

>What do you mean by "the data block"?
>
>The method -readDataInBackgroundAndNotify shouldn't block. You should
>receive a notification when data has been read.
>
>Are you saying that your method -myData: isn't called again after
>having read 32768 bytes and, in some cases, after only 1024 bytes?
>
>Are you sure the other end is really sending all data you expect it to?
>
>Are you sure no exceptions have been raised during the read operation?
>
>How is the "small" socket created?

I want receive a file from ircle with DCC SEND. After receiving the filename
and size with socket port and the address of user, i create stream-socket
type and establishing the connection to the user. At this point ircle sending
the file and i receiving max 32768 bytes. With Athena IRC i receiving only
1024 bytes with the same file. I think that it depends how big is the buffer
of the sender (ircle or athena) and when it is full it block sending but
i read data with an NSFileHandle intitialized with the socket descriptor
and when NSFileHandle notify my observer for arrived data i send another
readDataInBackgroundAndNotify in my observer method.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: readInBackgroundAndNotify & Socket
      • From: Cameron Hayne <email@hidden>
References: 
 >Re: readInBackgroundAndNotify & Socket (From: Malte Tancred <email@hidden>)

  • Prev by Date: Debugger problems
  • Next by Date: Re: Where is "CoreMenuExtraGetMenuExtra" in 10.2?
  • Previous by thread: Re: readInBackgroundAndNotify & Socket
  • Next by thread: Re: readInBackgroundAndNotify & Socket
  • Index(es):
    • Date
    • Thread