Linux协议栈报文收发流程记录
2013-06-08 14:35
405 查看
public enum FtpActionType { LOGIN(1) { public String getTitle() { return "登陆"; } }, LOGOUT(2) { public String getTitle() { return "登出"; } }, UNKNOWN(99) { public String getTitle() { return "未知"; } }; private int code; FtpActionType(int code) { this.code = code; } @Override public String toString() { return String.valueOf(code); } public abstract String getTitle(); }
public enum Difficulty { // 注意:枚举成员命名,请使用英文大写形式 NORMAL(1), MEDIUM(2), HARD(3); /** * final修饰字段是一个良好的实践。 */ final private int id; Difficulty(final int id){ this.id=id; } /** * 获得ID * @return */ public int getId() { return id; } }
/*** 游戏中的难度枚举:NORMAL , MEDIUM, HARD** @author mercyblitz*/public enum Difficulty {NORMAL, MEDIUM, HARD //注意:枚举成员命名,请使用英文大写形式}
相关文章推荐
- Linux协议栈报文收发流程记录
- Linux协议栈报文收发流程记录
- Linux协议栈报文收发流程记录
- 2017-02问题记录总结:linux下网络收发包性能测试代码、.bin和.elf文件格式区别
- 记录一下新建linux修改流程详细
- Linux PPP 数据收发流程
- Ztack学习笔记(5)-协议栈工作流程和无线收发控制LED
- Linux PPP 数据收发流程(转帖)
- Linux PPP 数据收发流程
- 网络数据包收发流程(1):从驱动到协议栈
- Linux PPP 数据收发流程
- linux网络代码流程简单记录
- Linux TCP/IP 协议栈学习(2)—— 数据帧收发主要函数及net_device 结构
- 网络数据包收发流程(四):协议栈之packet_type
- 网络数据包收发流程(1):从驱动到协议栈
- Linux基础自学记录六-引导流程解析2
- linux PPP数据收发流程
- 【Linux4.1.12源码分析】协议栈报文接收之IP层处理分析(ip_local_deliver)
- linux IP包收发流程
- Linux PPP 数据收发流程