This commit is contained in:
suyl
2021-06-15 17:57:23 +08:00
parent d0e511ff98
commit b5363033d6

View File

@@ -20,7 +20,7 @@ func connHandler(c net.Conn) {
//缓冲
buf := make([]byte, 1024)
fmt.Println("Please input data...")
for {
//for {
//读取终端输入直到读取到\n
//input, err := reader.ReadString('\n')
//if err != nil {
@@ -37,5 +37,5 @@ func connHandler(c net.Conn) {
}
//服务器端回传的信息
fmt.Println("server response:", string(buf[0:cnt]))
}
//}
}