code: protected void handleUDPSrvReg(SrvReg srvReg, InetSocketAddress localAddress, InetSocketAddress remoteAddress)
      {
          try
          {
              boolean update = srvReg.isUpdating();
              ServiceInfo service = ServiceInfo.from(srvReg);
              cacheService(service, update);
              udpSrvAck.perform(localAddress, remoteAddress, srvReg, SLPError.NO_ERROR);
          }
          catch (ServiceLocationException x)
          {
              udpSrvAck.perform(localAddress, remoteAddress, srvReg, x.getSLPError());
          }
      }
docs: Handles unicast UDP SrvReg message arrived to this directory agent.
  <br />
  This directory agent will reply with an acknowledge containing the result of the registration.
  
  @param srvReg        the SrvReg message to handle
  @param localAddress  the socket address the message arrived to
  @param remoteAddress the socket address the message was sent from