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.
21 lines
519 B
21 lines
519 B
using System.Net;
|
|
using System.Net.Sockets;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace ConsoleApp3
|
|
{
|
|
internal class Program
|
|
{
|
|
private static void Main(string[] args)
|
|
{
|
|
var listener = new TcpListener(IPAddress.Any, 7000);
|
|
listener.Start();
|
|
while (true)
|
|
{
|
|
TcpClient client = listener.AcceptTcpClient();
|
|
Task.Run(() => new LCDAUE800DService(client).Run());
|
|
}
|
|
listener.Stop();
|
|
}
|
|
}
|
|
} |