//定義udp server接收port
IPEndPoint ipep = new IPEndPoint(IPAddress.Any , 8001);
Socket newsock = new Socket(AddressFamily.InterNetwork, SocketType.Dgram , ProtocolType.Udp);
newsock.Bind(ipep); Console.WriteLine("This is a Server, host name is {0}",Dns.GetHostName());
//為什麼這裡還要在定義一次
IPEndPoint sender = new IPEndPoint(IPAddress.Any, 0);
EndPoint Remote = (EndPoint)(sender);
謝謝回答
即使有五~六個udp client 同時連線 利用程式開了五~六個給udp client 存取空間以及通道
是這個意思嗎