@HLEFunction(nid=0x224C5F44,version=150) public int sceNetResolverStartNtoA(@CheckArgument("checkRid") int rid,PspString hostname,TPointer32 addr,int timeout,int retry){
  try {
    InetAddress inetAddress=InetAddress.getByName(hostname.getString());
    int resolvedAddress=sceNetInet.bytesToInternetAddress(inetAddress.getAddress());
    addr.setValue(resolvedAddress);
    if (log.isDebugEnabled()) {
      log.debug(String.format("sceNetResolverStartNtoA returning address 0x%08X('%s')",resolvedAddress,sceNetInet.internetAddressToString(resolvedAddress)));
    }
 else     if (log.isInfoEnabled()) {
      log.info(String.format("sceNetResolverStartNtoA resolved '%s' into '%s'",hostname.getString(),sceNetInet.internetAddressToString(resolvedAddress)));
    }
  }
 catch (  UnknownHostException e) {
    log.error(e);
    return SceKernelErrors.ERROR_NET_RESOLVER_INVALID_HOST;
  }
  return 0;
}

@ HLEFunction ( nid = 0x224C5F44 , version = 150 ) public int sceNetResolverStartNtoA ( @ CheckArgument ( "checkRid" ) int rid , PspString hostname , TPointer32 addr , int timeout , int retry ) { try { InetAddress inetAddress = InetAddress . getByName ( hostname . getString ( ) ) ; int resolvedAddress = sceNetInet . bytesToInternetAddress ( inetAddress . getAddress ( ) ) ; addr . setValue ( resolvedAddress ) ; if ( log . isDebugEnabled ( ) ) { log . debug ( String . format ( "sceNetResolverStartNtoA returning address 0x%08X('%s')" , resolvedAddress , sceNetInet . internetAddressToString ( resolvedAddress ) ) ) ; } else if ( log . isInfoEnabled ( ) ) { log . info ( String . format ( "sceNetResolverStartNtoA resolved '%s' into '%s'" , hostname . getString ( ) , sceNetInet . internetAddressToString ( resolvedAddress ) ) ) ; } } catch ( UnknownHostException e ) { log . error ( e ) ; return SceKernelErrors . ERROR_NET_RESOLVER_INVALID_HOST ; } return 0 ; }
begin a name to address lookup
