Class AdvertiseAddress

java.lang.Object
org.ros.address.AdvertiseAddress

public class AdvertiseAddress extends Object
A wrapper for InetSocketAddress that emphasizes the difference between an address that should be used for binding a server port and one that should be advertised to external entities. An AdvertiseAddress encourages lazy lookups of port information to prevent accidentally storing a bind port (e.g. 0 for OS picked) instead of the advertised port.
Author:
damonkohler@google.com (Damon Kohler)
  • Constructor Details

    • AdvertiseAddress

      public AdvertiseAddress(String host)
  • Method Details