mirror of
https://github.com/impact-eintr/netstack.git
synced 2025-10-08 06:10:04 +08:00
可以把协议栈读到的数据发给用户层应用了! 下一步把用户层应用的数据写给客户端
This commit is contained in:
@@ -17,7 +17,9 @@ func main() {
|
||||
log.Println("连接建立")
|
||||
conn.Write([]byte("helloworld"))
|
||||
log.Println("发送了数据")
|
||||
conn.Close()
|
||||
buf := make([]byte, 1024)
|
||||
conn.Read(buf)
|
||||
//conn.Close()
|
||||
}()
|
||||
|
||||
t := time.NewTimer(1000 * time.Millisecond)
|
||||
|
Reference in New Issue
Block a user