I am using Asynchronous socket.
the server sends MSG to client continuously. client receives all the MSG but sometimes two or three messages at one time.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This is absolutely normal. Moreover, you are not guaranteed to read each time an integral number of your “messages”. I mean, you may read 1.5 message (one and a half), then next time read 2.7 (the remaining half, two more, and a bit of the next), and so on.
You have to implement the logic that splits the stream into messages.