From 06dc7559ba39f0adc6e9ae0d5ed5351a7c624bde Mon Sep 17 00:00:00 2001 From: sin365 <353374337@qq.com> Date: Mon, 22 Jan 2024 11:58:24 +0800 Subject: [PATCH] Sample --- .../NoSugarNet.ClientCli.csproj | 14 ++++++++++++++ Sample/NoSugarNet.ClientCli/Program.cs | 12 ++++++++++++ .../NoSugarNet.ServerCli.csproj | 14 ++++++++++++++ Sample/NoSugarNet.ServerCli/Program.cs | 16 ++++++++++++++++ 4 files changed, 56 insertions(+) create mode 100644 Sample/NoSugarNet.ClientCli/NoSugarNet.ClientCli.csproj create mode 100644 Sample/NoSugarNet.ClientCli/Program.cs create mode 100644 Sample/NoSugarNet.ServerCli/NoSugarNet.ServerCli.csproj create mode 100644 Sample/NoSugarNet.ServerCli/Program.cs diff --git a/Sample/NoSugarNet.ClientCli/NoSugarNet.ClientCli.csproj b/Sample/NoSugarNet.ClientCli/NoSugarNet.ClientCli.csproj new file mode 100644 index 0000000..e667905 --- /dev/null +++ b/Sample/NoSugarNet.ClientCli/NoSugarNet.ClientCli.csproj @@ -0,0 +1,14 @@ + + + + Exe + net7.0 + enable + enable + + + + + + + diff --git a/Sample/NoSugarNet.ClientCli/Program.cs b/Sample/NoSugarNet.ClientCli/Program.cs new file mode 100644 index 0000000..f09c7b0 --- /dev/null +++ b/Sample/NoSugarNet.ClientCli/Program.cs @@ -0,0 +1,12 @@ +using NoSugarNet.ClientCore; + +namespace NoSugarNet.ClientCli +{ + internal class Program + { + static void Main(string[] args) + { + AppNoSugarNet.Init("127.0.0.1", 1000); + } + } +} \ No newline at end of file diff --git a/Sample/NoSugarNet.ServerCli/NoSugarNet.ServerCli.csproj b/Sample/NoSugarNet.ServerCli/NoSugarNet.ServerCli.csproj new file mode 100644 index 0000000..3a33c16 --- /dev/null +++ b/Sample/NoSugarNet.ServerCli/NoSugarNet.ServerCli.csproj @@ -0,0 +1,14 @@ + + + + Exe + net7.0 + enable + enable + + + + + + + diff --git a/Sample/NoSugarNet.ServerCli/Program.cs b/Sample/NoSugarNet.ServerCli/Program.cs new file mode 100644 index 0000000..108b4bb --- /dev/null +++ b/Sample/NoSugarNet.ServerCli/Program.cs @@ -0,0 +1,16 @@ +using ServerCore.Manager; + +namespace NoSugarNet.ServerCli +{ + internal class Program + { + static void Main(string[] args) + { + ServerManager.InitServer(1000); + while (true) + { + Console.ReadLine(); + } + } + } +} \ No newline at end of file