View Source vedf_channel (erldist_filter v1.1.0)
Link to this section Summary
Link to this section Types
-type config() :: #{compact_fragments => boolean(), deep_packet_inspection => boolean(), logging => boolean(), redirect_dist_operations => boolean(), sysname => undefined | erldist_filter_nif:sysname(), untrusted => boolean()}.
-type t() :: #vedf_channel{}.
Link to this section Functions
-spec cast_fragments_to_packets(Channel, Fragments) -> Packets when Channel :: t(), Fragments :: [binary()], Packets :: [binary()].
-spec recv(OldChannel, Packets) -> {ok, Actions, NewChannel} when OldChannel :: t(), Packets :: [binary()], Actions :: [Action], Action :: erldist_filter_nif:action(), NewChannel :: t().
-spec send_encode(Channel, ControlMessage, Options) -> {ok, Packets, Channel} when Channel :: t(), ControlMessage :: vdist:dop_without_payload_t(), Options :: vdist_entry_encode:options(), Packets :: [binary()].
-spec send_encode(Channel, ControlMessage, Payload, Options) -> {ok, Packets, Channel} when Channel :: t(), ControlMessage :: vdist:dop_with_payload_t(), Payload :: vterm:t(), Options :: vdist_entry_encode:options(), Packets :: [binary()].