View Source erldist_filter_inet_tcp_dist (erldist_filter v1.28.5)
Summary
Functions
-spec accept(Listen) -> AcceptPid :: pid() when Listen :: gen_tcp:socket().
-spec accept_connection(AcceptPid, Socket, MyNode, Allowed, SetupTime) -> ConnectionSupervisorPid :: pid() when AcceptPid :: pid(), Socket :: gen_tcp:socket(), MyNode :: node(), Allowed :: list(), SetupTime :: non_neg_integer().
-spec close(Socket) -> ok when Socket :: gen_tcp:socket().
-spec getopts(ListeningSocket, Options) -> {ok, OptionValues} | {error, Error} when ListeningSocket :: gen_tcp:socket(), Options :: [inet:socket_getopt()], OptionValues :: [inet:socket_optval()], Error :: inet:posix().
-spec listen(Name, Host) -> {ok, {ListeningSocket, Address, Creation}} | {error, Reason} when Name :: node(), Host :: inet:hostname(), ListeningSocket :: gen_tcp:socket(), Address :: #net_address{address :: term(), host :: term(), protocol :: term(), family :: term()}, Creation :: 1..4294967295, Reason :: system_limit | inet:posix().
-spec setopts(ListeningSocket, Options) -> ok | {error, Error} when ListeningSocket :: gen_tcp:socket(), Options :: [inet:socket_setopt()], Error :: inet:posix() | {badopts, Options}.
-spec setup(Node, Type, MyNode, LongOrShortNames, SetupTime) -> ConnectionSupervisorPid :: pid() when Node :: node(), Type :: atom(), MyNode :: node(), LongOrShortNames :: shortnames | longnames, SetupTime :: non_neg_integer().