06-25-2019, 06:39 PM
I wasn't following some rather complicated (old) code correctly. It looked like a TCP header because it was a "psuedo tcp protocol" where information was patterned after a tcp header, used TCP names like SYN, ACK, FIN, and used a variable named "header", then encrypted it and sent it as data. The problem was actually the use of ToBytes where RawToBytes was needed, as well as a another bug introduced when TMemoryStream was changed to TIdBytes and a push_back was not implemented properly.
Sorry for the confusion, but I appreciate you taking the time to respond.
Sorry for the confusion, but I appreciate you taking the time to respond.