Not enough details to give specific advice. My go to answer would be don't send ASCII. Pack the data in a struct and send / receive it as binary. But, need a lot more information in order to flesh that out.
Not enough details to give specific advice. My go to answer would be don't send ASCII. Pack the data in a struct and send / receive it as binary. But, need a lot more information in order to flesh that out.