营养数据计算优化;人脸增加数据处理;其它优化;
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package com.sw.dualscreen.socket;
|
||||
|
||||
public class LanServer {
|
||||
|
||||
private static volatile LanCommunicationManager instance;
|
||||
|
||||
public static LanCommunicationManager getInstance() {
|
||||
if (instance == null) {
|
||||
synchronized (LanServer.class) {
|
||||
if (instance == null) {
|
||||
instance = new LanCommunicationManager(
|
||||
5000, // 监听端口
|
||||
20, // 最大客户端数
|
||||
10_000 // 心跳超时时间 10 秒
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
return instance;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user