1:網(wǎng)線或者網(wǎng)絡(luò)的事,比如IP被占用,網(wǎng)線不好用。
查找方法: ping一下網(wǎng)關(guān)。
2:接收數(shù)據(jù)中有"\0",把后面數(shù)據(jù)截斷了。
解決辦法: string.replace("\0","")。