aa
This commit is contained in:
@@ -1971,7 +1971,6 @@ var (
|
|||||||
func connHandler(c net.Conn) {
|
func connHandler(c net.Conn) {
|
||||||
fmt.Println("Please input data...")
|
fmt.Println("Please input data...")
|
||||||
go func() {
|
go func() {
|
||||||
for {
|
|
||||||
s := <-textChan
|
s := <-textChan
|
||||||
//写入数据
|
//写入数据
|
||||||
n, err := c.Write([]byte(s))
|
n, err := c.Write([]byte(s))
|
||||||
@@ -1979,7 +1978,6 @@ func connHandler(c net.Conn) {
|
|||||||
fmt.Println("Write err:", err, n)
|
fmt.Println("Write err:", err, n)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}()
|
}()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user