code: public void stop(long millisec) throws ChannelException {
          if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
              Tr.entry(this, tc, "stop " + millisec + "; " + getName());
          }
          // only stop the channel if millisec is 0, otherwise ignore.
          if (millisec == 0) {
              stoppedFlag = true;
  
              // Stop accepting new connections on the inbound channels
              if (getConfig().isInboundChannel()) {
  
                  try {
                      Tr.info(tc, "CWUDP0002I", new Object[] { getConfig().getExternalName(), displayableHostName, String.valueOf(getConfig().getPort()) });
                  } catch (Exception e) {
                      // just debug,since this is on an audit attempt
                      if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                          Tr.debug(this, tc, "Got exception auditing UDP Channel Stop: " + e);
                      }
                  }
              }
  
              // destroy all the "in use" UDPConnLink. This should close all
              // the sockets held by these connections.
              destroyConnLinks();
  
          }
          if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
              Tr.exit(this, tc, "stop");
          }
      }
docs: /*
  @see com.ibm.wsspi.channelfw.Channel#stop(long)