Networking in Cocoa
Subject:   Partial Reads
Date:   2003-05-17 03:20:56
From:   anonymous2
The "receiveMessage:" method doesn't try to deal with partial reads, it assumes that it will receive a complete message on every read. This may not always be the case and the program needs to be prepared to assemble a complete message from separate chunks of received data.