Example #1
0
 public UDPController()
 {
     msgList  = new Queue <string>();
     uManager = UDPManager.Instance("235.6.7.8", 7721);
     //uManager.GroupCastInit("235.6.7.8", 7721);
     InputFunction();
 }
Example #2
0
 /// <summary>
 /// 获得UDPManager的实例
 /// </summary>
 /// <param name="groupIP">组播IP地址(连接的用户需保持一致)</param>
 /// <param name="port">组播端口(连接的用户需保持一致)</param>
 /// <returns></returns>
 public static UDPManager Instance(string groupIP, int port)//单例模式串联
 {
     if (_Instance == null)
     {
         _Instance = new UDPManager(groupIP, port);
     }
     return(_Instance);
 }