View Source erldns_udp_server (erldns v4.2.0)

Handles DNS questions arriving via UDP.

Summary

Functions

code_change(PreviousVersion, State, Extra)

handle_call(Request, From, State)

handle_cast(Message, State)

handle_info(Message, State)

handle_request(Socket, Host, Port, Bin, State)

init(_)

is_running()

-spec is_running() -> boolean().

Return true if the UDP server process is running

start_link(Name, InetFamily)

-spec start_link(atom(), inet | inet6) -> {ok, pid()} | ignore | {error, term()}.

Start the UDP server process

start_link(Name, InetFamily, Address, Port)

-spec start_link(atom(), inet | inet6, inet:ip_address(), inet:port_number()) ->
                    {ok, pid()} | ignore | {error, term()}.

start_link(Name, InetFamily, Address, Port, SocketOpts)

terminate(Reason, State)