The shipping examples called Simple Data Server and Simple Data Client send and receive an array. Because you do a type case of the array to a string, you use the string length function and send that before you send the array. At the client, you read the length first and that is used to specify the byte count of TCP Read.