09 2020 档案

摘要:bufio.NewReader 通过 ReadLine读取每一行 func (t *TcpSocketUtil) syncreciveline() (string, error) { buf := bufio.NewReader(net.conn) for { data, _, eof := buf 阅读全文
posted @ 2020-09-17 12:03 LLSix 阅读(808) 评论(0) 推荐(0)
摘要:handle.SetBPFFilter("tcp and port 80") 过滤 默认是将所有捕获的包返回回来,而很多时候我们需要关注某个特定类型的包,这时候就需要设置过滤器。这里可以用 Berkeley Packet Filter 的语法 阅读全文
posted @ 2020-09-03 13:24 LLSix 阅读(727) 评论(0) 推荐(0)