TCP allows for arbitrary amounts of data to be sent and received over a stream socket. Because a stream is interpreted as a sequence of bits, TCP cannot identify the organization, content or amount of data being processed. Therefore, a TCP application should use its own protocol to logically divide a stream into messages. The most common way of doing this is to prefix the data with the data length.
|
Copyright © 2014 CA.
All rights reserved.
|
|