日期:2014-05-16 浏览次数:21065 次
IPEndPoint IP = new IPEndPoint(IPPAddress.Parse("172.17.1.150"), 9192);
Socket UdpServer = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocalType.Udp);
UdpServer.Bind(IP);
IPEndPoint ipep = new IPEndPoint(IPAddress.Any, 0);
EndPoint Remote = (EndPoint)ipep;
int length = 0;
new Thread(() =>
{
while (true)
{
byte[] data = new byte[10240];
&nb