aa
This commit is contained in:
@@ -29,7 +29,11 @@ func connHandler(c net.Conn) {
|
|||||||
// return
|
// return
|
||||||
//}
|
//}
|
||||||
//写入数据
|
//写入数据
|
||||||
c.Write([]byte("input 1111111111"))
|
n, err := c.Write([]byte("input 1111111111"))
|
||||||
|
if err != nil {
|
||||||
|
fmt.Println("Write err:", err, n)
|
||||||
|
return
|
||||||
|
}
|
||||||
//服务器端返回的数据写入buf
|
//服务器端返回的数据写入buf
|
||||||
cnt, err := c.Read(buf)
|
cnt, err := c.Read(buf)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user