-
Notifications
You must be signed in to change notification settings - Fork 0
Home
rikaaa0928 edited this page Sep 18, 2020
·
3 revisions
监听server连接 -> 流量统计
路由 -> 查看路由表
建立client连接 -> 流量统计
net.Conn
conn{
net.Conn
startInfo()addr,name
endInfo()addr,name
}
server{
listen()(listener)
}
listerer{
accept(context){context,srvConn,err}//认证,连接数统计
close()
}
ConnHandler{
handle(client,router)
read/write()//流量统计
close()//连接数统计
}
client{
dial(context,addr)Conn//认证
}