Solution

when I test the example on windows,found that reading port,one packet split to be more than one slice,so I add a function to deal with it.willing to hear you