Socket
This commit is contained in:
17
Socket/Client/Program.cs
Normal file
17
Socket/Client/Program.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user