Skip to content
FutureBlitz

    Install

    Import std.net.lan

    LanService

    std.net.lan

    struct

    Public Struct LanService Implements Printable

    A service on the LAN, as DNS-SD has one: its type, like "_mygame._udp", its name, which none of its type shares, the host it's on and that host's addresses, its port, and its text, a map of keys to values, each key once whatever its letters' case, as the first of them is written.

    std/net/lan.fb, line 75

    • Public ReadOnly Field Type: String field #

      Its type, like "_mygame._udp".

    • Public ReadOnly Field Name: String field #

      Its name, which none of its type shares.

    • Public ReadOnly Field Host: String field #

      The host it's on.

    • Public ReadOnly Field Port: UInt16 field #

      Its port.

    • Public ReadOnly Field Addresses: IpAddress[] field #

      Its host's addresses.

    • Public ReadOnly Field Text: Map<String, String> field #

      Its text: keys and their values.

    • Public Property Address: SocketAddress? property #

      Its first address and port, or Null when it has no address: the address its answer came from, which the finder can reach, then those it gave for its host.

    • Public Method ToString(): String method #

      Its name, type, host, and port, as "Lobby (_example._udp) at host.local:7777".

    Report an issue with this page or with FutureBlitz on GitHub.