From bd945e5fbe2e9e8487c0800e2385a80cbbe7f78a Mon Sep 17 00:00:00 2001 From: "build@lguplus.co.kr" Date: Thu, 11 Jan 2024 11:53:53 +0900 Subject: [PATCH] =?UTF-8?q?response=20=EC=B0=B8=EC=A1=B0=20=EA=B0=80?= =?UTF-8?q?=EB=8A=A5=20=ED=95=98=EB=8F=84=EB=A1=9D=20=EC=98=A4=ED=94=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/socket/protobuf_client.dart | 2 +- lib/utils/system_util.dart | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/socket/protobuf_client.dart b/lib/socket/protobuf_client.dart index b845243..4c3b52a 100644 --- a/lib/socket/protobuf_client.dart +++ b/lib/socket/protobuf_client.dart @@ -42,7 +42,6 @@ abstract class ProtobufClient extends Communicator _heartbeatChecker?.responsed(); _heartbeatChecker = ResponseChecker.second(this, _heartbeatIntervalTime, (client) { if(_isAlive) { - print('=== sendHartBeat'); send(HeartBeat()); _heartbeatChecker = ResponseChecker.second(this, _heartbeatWaitTime, (client) { if(_isAlive) { @@ -172,6 +171,7 @@ class ResponseChecker { late int _time; late Timer? _timer = null; late void Function(T) _notResponseListener; + T get responser => _responser; ResponseChecker(this._responser, this._time, this._notResponseListener) { startTimer(); } diff --git a/lib/utils/system_util.dart b/lib/utils/system_util.dart index 93175f9..97b8f11 100644 --- a/lib/utils/system_util.dart +++ b/lib/utils/system_util.dart @@ -16,6 +16,9 @@ void initialize() { getDataPath = getDataPath_; } +const int intMax = 0x7FFFFFFFFFFFFFFF; +const int intMin = -0x8000000000000000; + Map?> envArguments(List arguments) { var dic = ?>{}; var list = [];