Re: readInBackgroundAndNotify & Socket
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.