View Source MCPing.Srv (mcping v0.3.0)

Functions for resolving SRV records.

Link to this section Summary

Functions

Resolves a SRV record for a given service, protocol, and hostname.

Link to this section Functions

Link to this function

resolve_srv_record(service, protocol, hostname, timeout)

View Source

Resolves a SRV record for a given service, protocol, and hostname.

examples

Examples

iex> MCPing.Srv.resolve_srv_record("minecraft", "tcp", "hypixel.net", 5000)
{~c"mc.hypixel.net", 25565}