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

Link to this function

cast_fragments_to_packets(Channel, Fragments)

View Source
-spec cast_fragments_to_packets(Channel, Fragments) -> Packets
                             when Channel :: t(), Fragments :: [binary()], Packets :: [binary()].
Link to this function

new(PacketSize, DistributionFlags)

View Source
-spec new(PacketSize, DistributionFlags) -> T
       when PacketSize :: 0 | 1 | 2 | 4 | 8, DistributionFlags :: vterm:u64(), T :: t().
Link to this function

new(PacketSize, DistributionFlags, Config)

View Source
-spec new(PacketSize, DistributionFlags, Config) -> T
       when
           PacketSize :: 0 | 1 | 2 | 4 | 8,
           DistributionFlags :: vterm:u64(),
           Config :: config(),
           T :: t().
Link to this function

recv(OldChannel, Packets)

View Source
-spec recv(OldChannel, Packets) -> {ok, Actions, NewChannel}
        when
            OldChannel :: t(),
            Packets :: [binary()],
            Actions :: [Action],
            Action :: erldist_filter_nif:action(),
            NewChannel :: t().
Link to this function

send_encode(Channel, ControlMessage, Options)

View Source
-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()].
Link to this function

send_encode(Channel, ControlMessage, Payload, Options)

View Source
-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()].