| File was renamed from ard-work/src/main/java/com/ard/tianyu/netty/command/register/HeartbeatCommand.java |
| | |
| | | package com.ard.tianyu.netty.command.register; |
| | | |
| | | import com.ard.tianyu.netty.command.BaseCommand; |
| | | import com.ard.tianyu.netty.command.BaseCmd; |
| | | import io.netty.buffer.ByteBuf; |
| | | |
| | | /** |
| | |
| | | * @author 刘苏义 |
| | | * @date 2024/10/22 16:36 |
| | | */ |
| | | public class HeartbeatCommand extends BaseCommand { |
| | | public class HeartbeatCmd extends BaseCmd { |
| | | |
| | | private final long timestamp; |
| | | |
| | | public HeartbeatCommand(long timestamp) { |
| | | public HeartbeatCmd(long timestamp) { |
| | | setDataHeader((short)0x7479); |
| | | setDataLength((short)0x09); |
| | | setCmdCode((byte)0x02); |