物联网平台 +Web 组态
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

46 lines
811 B

package com.lpro.iot.protocal;
import org.apache.mina.core.session.IoSession;
import com.lpro.iot.bean.ReturnNodeInfoObj;
public interface Iprotocal {
/**
* 协议匹配
*/
boolean match(IoSession session,byte[] data,String msg) ;
/**
* 登录判断
* @param session
* @param data
* @param msg
*/
void loginProtocal(IoSession session,byte[] data,String msg , ReturnNodeInfoObj obj);
/**
* 数据解析
* @param session
* @param data
* @param msg
*/
void analysisData(IoSession session, byte[] data, String msg);
/**
* 心跳包
* @param session
*/
void handbert(IoSession session);
/**
* 执行server
* @param session
* @param data
* @param msg
*/
void execServer(IoSession session, byte[] data, String msg) ;
void logout(IoSession session);
}