Remove SEND_SPLIT_COMPLETED and use -1 as the indicator for end-of-file