-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
/**
* 处理接受到的消息
*/
private void receiveMessage() {
while (isThreadRunning) {
try {
if (client != null) {
client.receive(receivePacket);
}
lastReceiveTime = System.currentTimeMillis();
Log.d(TAG, "receive packet success...");
} catch (IOException e) {
Log.e(TAG, "UDP数据包接收失败!线程停止");
stopUDPSocket();
e.printStackTrace();
return;
}
跑起来项目发送是成功的 但是接收从来没收到过消息 请教下这个情况是?
Metadata
Metadata
Assignees
Labels
No labels