View Source erldist_filter_inet_tcp_dist (erldist_filter v1.28.5)

Summary

Functions

-spec accept(Listen) -> AcceptPid :: pid() when Listen :: gen_tcp:socket().
Link to this function

accept_connection(AcceptPid, Socket, MyNode, Allowed, SetupTime)

View Source
-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 address() ->
           Address ::
               #net_address{address :: term(),
                            host :: term(),
                            protocol :: term(),
                            family :: term()}.
-spec close(Socket) -> ok when Socket :: gen_tcp:socket().
Link to this function

getopts(ListeningSocket, Options)

View Source
-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 is_node_name(Node) -> boolean() when Node :: node().
-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 select(Node) -> boolean() when Node :: node().
Link to this function

setopts(ListeningSocket, Options)

View Source
-spec setopts(ListeningSocket, Options) -> ok | {error, Error}
           when
               ListeningSocket :: gen_tcp:socket(),
               Options :: [inet:socket_setopt()],
               Error :: inet:posix() | {badopts, Options}.
Link to this function

setup(Node, Type, MyNode, LongOrShortNames, SetupTime)

View Source
-spec setup(Node, Type, MyNode, LongOrShortNames, SetupTime) -> ConnectionSupervisorPid :: pid()
         when
             Node :: node(),
             Type :: atom(),
             MyNode :: node(),
             LongOrShortNames :: shortnames | longnames,
             SetupTime :: non_neg_integer().