multi thread

This commit is contained in:
2023-02-06 16:19:26 +09:00
parent 695c0ce1ac
commit 3c54eb1d0f
7 changed files with 122 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
using System.Net;
using System.Net.Sockets;
namespace Client;
internal class Client
{
static void Main(string[] args)
{
Socket socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
socket.Connect(new IPEndPoint(IPAddress.Parse("127.0.0.1"), 20000));
Console.ReadLine();
}
}

View File

@@ -0,0 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>