摘要: import ( "bufio" "bytes" "encoding/binary" ) // Encode 将消息编码 func Encode(message string) ([]byte, error) { // 读取消息的长度,转换成int32类型(占4个字节) var length = i 阅读全文
posted @ 2020-12-17 09:35 ruanqin 阅读(59) 评论(0) 推荐(0) 编辑