Code example for InetSocketAddress

Methods: isUnresolved

0
 
    if (!(target instanceof InetSocketAddress))
      throw new IOException("can only send to inet socket addresses");
 
    InetSocketAddress dst = (InetSocketAddress) target;
    if (dst.isUnresolved())
      throw new IOException("Target address not resolved");
 
    return channel.send(src, dst);
  } 
 
  public VMChannel getVMChannel() 
  { 
    return channel;
  } 
}