I am sending a number of msgs from different sources one after the other and it seems like it will start sending the next msg before it finished the 1st one. My guess is that the send buffer is not empty yet. I tried (optimistically?) to check if all the chars were sent in the 2nd line of code, this did not work. What is the right way to do this? Thanks!