Re: readInBackgroundAndNotify & Socket
Re: readInBackgroundAndNotify & Socket
- Subject: Re: readInBackgroundAndNotify & Socket
- From: Cameron Hayne <email@hidden>
- Date: Tue, 08 Oct 2002 16:05:26 -0400
On 8/10/02 11:45 am, "email@hidden" <email@hidden>
wrote:
>
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.
Sorry, but you need to give more details about what happens. You seem to be
saying that the first time your observer method gets called, you receive
32768 bytes (in the case of ircle), and then your observer method does not
get called a second time. Is that correct?
Maybe you should show us a skeleton version of your observer method.
--
Cameron Hayne (email@hidden)
Hayne of Tintagel
_______________________________________________
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.