X13.Periphery.MsDevice.MsGUdp.Stop C# (CSharp) Method

Stop() public method

public Stop ( ) : void
return void
      public void Stop() {
        try {
          if(_udp!=null) {
            var nodes=_nodes.ToArray();
            for(int i=0; i<nodes.Length; i++) {
              nodes[i].Stop();
            }
            _udp.Close();
            _udp=null;
          }
        }
        catch(Exception ex) {
          Log.Error("MsGUdp.Close() - {0}", ex.ToString());
        }

      }
      #endregion instance