synchronized( host_map ){
Integer res = (Integer)host_map.get(str);
if ( res == null ){
res = new Integer( next_address++ );
if (Logger.isEnabled())
Logger.log(new LogEvent(LogIDs.NET, "Allocated pseudo IP address '"
+ Integer.toHexString(res.intValue()) + "' for host '" + str
+ "'"));
host_map.put( str, res );
}
return( res.intValue());
}