discoverServersOnNetwork

fun discoverServersOnNetwork(context: Context, port: Int = 49050, message: String = "screenshot matcher client LF server", onGet: (servers: List<Pair<String, String>>) -> Unit): List<Pair<String, String>>

Discovers and returns available servers on the network.

Return

A list of available servers.

Parameters

context

The context of the calling Activity or Service to use for the request.

port

The port to use send the request to.

message

The message to send to the servers on the network.

onGet

The function to call when the request is complete.