View Source erldns_tcp_server (erldns v4.2.0)

Handles DNS questions arriving via TCP.

Summary

Functions

code_change(PreviousVersion, State, Extra)

handle_call(Request, From, State)

handle_cast(Message, State)

handle_info(Message, State)

handle_request(Socket, Bin, State)

init(_)

new_connection(Socket, State)

sock_opts()

start_link(Name, Family)

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

start_link(Name, Family, Address, Port)

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

terminate(Reason, State)