摘要: jprotobuf工作原理如下: github地址:https://github.com/jhunters/jprotobuf jprotobuf 序列化字节数小,适合网络传输 序列化字段设置: 实现序列化: 阅读全文
posted @ 2019-02-15 16:41 newlangwen 阅读(2431) 评论(0) 推荐(0) 编辑
摘要: 原生序列化: https://blog.csdn.net/jtf8525140/article/details/81094222 MessagePack Protocol Buffers Dubbo kryo 序列化可以系统的通用性、强壮性、优化性能,同时让系统更易于调试和扩展 1.序列化不保存静态 阅读全文
posted @ 2019-02-15 15:56 newlangwen 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 服务端 客户端 阅读全文
posted @ 2019-02-15 15:01 newlangwen 阅读(266) 评论(0) 推荐(0) 编辑
摘要: Socket通讯的过程 Server端Listen(监听)某个端口是否有连接请求,Client端向Server 端发出Connect(连接)请求,Server端向Client端发回Accept(接受)消息。一个连接就建立起来了。Server端和Client 端都可以通过Send,Write等方法与对 阅读全文
posted @ 2019-02-15 14:59 newlangwen 阅读(452) 评论(0) 推荐(0) 编辑