发布网友 发布时间:2022-12-16 21:36
共2个回答
热心网友 时间:2023-09-11 03:32
int numOfBytesReceived=msg.arg1; byte[]buffer=(byte[])msg.obj; String strReceived=new String(buffer); strReceived=strReceived.substring(0,numOfBytesReceived); 数组越界了,看看这个String的长度吧热心网友 时间:2023-09-11 03:33
.向套接字通道(信道)写入数据