摘要: 软件下载 https://www.wireshark.org/#download 选择对应的版本下载 mac装了Wireshark,一直以来使用都没有遇到问题,电脑系统升级后再次使用时,无论选择有线还是无线网卡,均抓包失败,弹出提示“the capture session could not be 阅读全文
posted @ 2020-05-10 19:20 Binb 阅读(439) 评论(0) 推荐(0) 编辑
摘要: IO模型 在UNIX/Linux下主要有4种I/O模型 阻塞I/O(最常用) 非阻塞I/O(可防止进程阻塞在I/O操作上,需要轮询) I/O多路复用(允许同时对多个I/O进行控制) 信号驱动I/O(一种异步通讯模型) 阻塞I/O模式 阻塞I/O模式是最普遍使用的I/O模式,大部分程序使用的都是阻塞模 阅读全文
posted @ 2020-05-10 18:15 Binb 阅读(397) 评论(0) 推荐(0) 编辑
摘要: 大家都知道slice是一个引用类型,废话不多说,上代码 func test(res [][]int) { res[0] = []int{2,2,2,2} res[1][0] = 3 } func main() { res := [][]int{[]int{1,1,1,1},[]int{2,2,2,2 阅读全文
posted @ 2020-05-10 10:51 Binb 阅读(342) 评论(0) 推荐(0) 编辑