From ac335aa4c3cca3ff3917b452587bd60f65c0bf5b Mon Sep 17 00:00:00 2001 From: panson Date: Fri, 20 Nov 2020 21:14:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20socket=20=E7=BD=91=E7=BB=9C=E7=BC=96?= =?UTF-8?q?=E7=A8=8B=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/1-fromBIO&NIOToNetty.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/1-fromBIO&NIOToNetty.md b/docs/1-fromBIO&NIOToNetty.md index 002b10d..0f3d008 100644 --- a/docs/1-fromBIO&NIOToNetty.md +++ b/docs/1-fromBIO&NIOToNetty.md @@ -153,7 +153,7 @@ public class HelloClient { public static void main(String[] args) { HelloClient helloClient = new HelloClient(); - helloClient.send(new Message("content from client"), "127.0.0.1", 6666); + Message message = (Message) helloClient.send(new Message("content from client"), "127.0.0.1", 6666); System.out.println("client receive message:" + message.getContent()); } }