Recently made an android socket communication project with the TCP protocol.
TCP is a connection-oriented protocol words, it should not have received data packet loss or order is not chaos, but I tested many are chaotic sequence. How to solve?
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
Platform issues, byte order your environment needs to be said
Reply:
I was sent a variable sequence at the sending end, made one plus one, arguably the receiving end should be the order of the output variable, but are a mess. What is the platform issues, new solving.
Reply:
Solving. Personalize answer ah.
Reply:
You are multi-threaded data transmission?
socket to send data should not be out of order. Unless it is multi-threaded data changed.
Reply:
Send the package is not chaos, chaos take over. How to do?
Reply:
Sending is OK, it is a question of reading, check, or grab what tools package, try. socket this is very stable, hardly out of sequence packets to find the problem.
Reply:
I have two phone via wifi to send and receive, the delay has 50-100ms, which is what happens?
Words capture tools how to use?
Reply:
Under a wireshark capture tool, easy to use.
No comments:
Post a Comment