15 lines
320 B
C#
15 lines
320 B
C#
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();
|
|
}
|
|
} |