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