public void Start()
 {
     deviceDictionary.Clear();
     config = Configuration.Load();
     udpHandler.BeginHandle(new IPEndPoint(SysUtil.GetLocalIP(), MSG_PORT));
     StartBroadcast(true);
 }
예제 #2
0
 public DeviceInfo GetLocalInfo()
 {
     try
     {
         return(new DeviceInfo()
         {
             IP = SysUtil.GetLocalIP(),
             DeviceName = this.DeviceName,
             NickName = this.NickName
         });
     }
     catch (Exception e)
     {
         Logging.Error(e);
     }
     return(null);
 }