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