NSFileHandleDataAvailableNotification
NSFileHandleDataAvailableNotification
- Subject: NSFileHandleDataAvailableNotification
- From: Mark Levin <email@hidden>
- Date: Wed, 9 Jul 2003 17:29:54 -0500
I have a client-server setup over a connection with NSFileHandles on
both ends. After the server and client sockets are initialized with BSD
calls up to listen() and connect() respectively, they are hooked up
with acceptConnectionInBackgroundAndNotify and
waitForDataInBackgroundAndNotify. Each time some data is handled, I
call waitForDataInBackgroundAndNotify again, since the documentation
implies that only a single notification will be posted. However, I then
receive a constant stream of available data notifications, none of
which provides any data when readDataToEndOfFile is called. What am I
doing wrong?
--Mark
"I SAY YOU'VE GOT TO TOAST ME!"
Random acts of programming:
http://homepage.mac.com/haveblue
_______________________________________________
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.