From eb51cf4365f8a8eefc3c0a605071813e86ba0194 Mon Sep 17 00:00:00 2001 From: liurunyu <lry9898@163.com> Date: 星期五, 09 五月 2025 13:40:56 +0800 Subject: [PATCH] 命令生成器模块增加功能码97、98、99、A0、A1实现 --- pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/channel/tcp/TcpIoSessionEventCallback.java | 32 ++++++++++++++++++++++++++++++++ 1 files changed, 32 insertions(+), 0 deletions(-) diff --git a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/channel/tcp/TcpIoSessionEventCallback.java b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/channel/tcp/TcpIoSessionEventCallback.java new file mode 100644 index 0000000..e277133 --- /dev/null +++ b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/channel/tcp/TcpIoSessionEventCallback.java @@ -0,0 +1,32 @@ +package com.dy.common.mw.channel.tcp; + +import org.apache.mina.core.session.IoSession; + +public interface TcpIoSessionEventCallback { + + /** + * 缃戠粶鎵撳紑 + */ + void sessionOpened(IoSession session) throws Exception ; + /** + * 缃戠粶鍏抽棴 + */ + void sessionClosed(IoSession session) throws Exception ; + + /** + * 鍙戠敓寮傚父 + */ + void exceptionCaught(IoSession session, Throwable cause) throws Exception ; + + + /** + * 鍙戦�佹暟鎹悗锛屽洖璋冪殑鏂规硶锛岃繘琛屾暟鎹鐞� + */ + void messageSended(IoSession session, Object message) throws Exception ; + + /** + * 鎺ユ敹鍒版暟鎹悗锛屽洖璋冪殑鏂规硶锛岃繘琛屾暟鎹鐞� + */ + void messageReceived(IoSession session, Object message) throws Exception ; + +} -- Gitblit v1.8.0