You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tcpipSocket/Socket/Client/Program.cs

17 lines
370 B

2 years ago
using System.Net;
using System.Net.Sockets;
namespace Client;
internal class Program
{
static void Main(string[] args)
{
while (true)
{
Socket clientSocket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
IPEndPoint endPoint = new IPEndPoint(IPAddress.Parse("127.0.0.1"), 20000);
clientSocket.Connect(endPoint);
}
}
}