会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
LLSIX
每天让自己进一小步
博客园
首页
新随笔
联系
订阅
管理
09 2020 档案
golang socket TCPServer 读取每行
摘要: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)
gopacket 过滤器
摘要:handle.SetBPFFilter("tcp and port 80") 过滤 默认是将所有捕获的包返回回来,而很多时候我们需要关注某个特定类型的包,这时候就需要设置过滤器。这里可以用 Berkeley Packet Filter 的语法
阅读全文
posted @
2020-09-03 13:24
LLSix
阅读(727)
评论(0)
推荐(0)
公告