This commit is contained in:
suyl
2021-06-16 10:31:09 +08:00
parent 587c0aa864
commit 7c87c541f2

View File

@@ -29,7 +29,11 @@ func connHandler(c net.Conn) {
// return
//}
//写入数据
c.Write([]byte("input 1111111111"))
n, err := c.Write([]byte("input 1111111111"))
if err != nil {
fmt.Println("Write err:", err, n)
return
}
//服务器端返回的数据写入buf
cnt, err := c.Read(buf)
if err != nil {