From 97f4c347087a138972885507ebdb91de46be11c6 Mon Sep 17 00:00:00 2001 From: chuzhongzai Date: Mon, 4 Mar 2024 23:19:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=AB=AF=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 38 ++++++++ .idea/encodings.xml | 7 ++ .idea/misc.xml | 15 +++ .idea/vcs.xml | 6 ++ .idea/workspace.xml | 127 +++++++++++++++++++++++++ src/main/java/com/demo/SecretChat.java | 2 +- 6 files changed, 194 insertions(+), 1 deletion(-) create mode 100644 .gitignore create mode 100644 .idea/encodings.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/vcs.xml create mode 100644 .idea/workspace.xml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5ff6309 --- /dev/null +++ b/.gitignore @@ -0,0 +1,38 @@ +target/ +!.mvn/wrapper/maven-wrapper.jar +!**/src/main/**/target/ +!**/src/test/**/target/ + +### IntelliJ IDEA ### +.idea/modules.xml +.idea/jarRepositories.xml +.idea/compiler.xml +.idea/libraries/ +*.iws +*.iml +*.ipr + +### Eclipse ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache + +### NetBeans ### +/nbproject/private/ +/nbbuild/ +/dist/ +/nbdist/ +/.nb-gradle/ +build/ +!**/src/main/**/build/ +!**/src/test/**/build/ + +### VS Code ### +.vscode/ + +### Mac OS ### +.DS_Store \ No newline at end of file diff --git a/.idea/encodings.xml b/.idea/encodings.xml new file mode 100644 index 0000000..aa00ffa --- /dev/null +++ b/.idea/encodings.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..de4b033 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,15 @@ + + + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000..51b6544 --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,127 @@ + + + + + + + + + + + + + + + + + { + "customColor": "", + "associatedIndex": 5 +} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1706609824140 + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/java/com/demo/SecretChat.java b/src/main/java/com/demo/SecretChat.java index fa9ff9a..cd92fb0 100644 --- a/src/main/java/com/demo/SecretChat.java +++ b/src/main/java/com/demo/SecretChat.java @@ -60,7 +60,7 @@ public class SecretChat { pipeline.addLast(new MyWebSocketServerHandler()); } }); - ChannelFuture sync = b.bind(7777).sync(); + ChannelFuture sync = b.bind(6666).sync(); sync.channel().closeFuture().sync(); }catch (Exception e){ e.printStackTrace();