Files
tcpipSocket/MultiThread/Client/Client.cs

15 lines
320 B
C#
Raw Normal View History

2023-02-06 16:19:26 +09:00
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();
}
}