Class DittoLanConfig

java.lang.Object
com.ditto.java.transports.DittoLanConfig

public final class DittoLanConfig extends Object
Configuration for Local Area Network (LAN) peer-to-peer transport. LAN transport allows devices on the same local network to discover and sync with each other using mDNS and multicast discovery mechanisms.
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Returns whether LAN transport is enabled.
      Returns:
      true if LAN transport is enabled, false otherwise.
    • isMdnsEnabled

      public boolean isMdnsEnabled()
      Returns whether mDNS (Multicast DNS) discovery is enabled.
      Returns:
      true if mDNS is enabled, false otherwise.
    • isMulticastEnabled

      public boolean isMulticastEnabled()
      Returns whether multicast discovery is enabled.
      Returns:
      true if multicast is enabled, false otherwise.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object