Requiem.NIF.Bridge (requiem v0.4.0)

Link to this section Summary

Functions

Link to this section Functions

Link to this function

config_destroy(ptr)

Specs

config_destroy(integer()) :: :ok | {:error, :system_error | :not_found}
Link to this function

config_enable_dgram(ptr, enabled, recv_queue_len, send_queue_len)

Specs

config_enable_dgram(integer(), boolean(), non_neg_integer(), non_neg_integer()) ::
  :ok | {:error, :system_error | :not_found}
Link to this function

config_enable_early_data(ptr)

Specs

config_enable_early_data(integer()) ::
  :ok | {:error, :system_error | :not_found}
Link to this function

config_enable_hystart(ptr, v)

Specs

config_enable_hystart(integer(), boolean()) ::
  :ok | {:error, :system_error | :not_found}
Link to this function

config_grease(ptr, grease)

Specs

config_grease(integer(), boolean()) ::
  :ok | {:error, :system_error | :not_found}
Link to this function

config_load_cert_chain_from_pem_file(ptr, file)

Specs

config_load_cert_chain_from_pem_file(integer(), binary()) ::
  :ok | {:error, :system_error | :not_found}
Link to this function

config_load_priv_key_from_pem_file(ptr, file)

Specs

config_load_priv_key_from_pem_file(integer(), binary()) ::
  :ok | {:error, :system_error | :not_found}
Link to this function

config_load_verify_locations_from_directory(ptr, dir)

Specs

config_load_verify_locations_from_directory(integer(), binary()) ::
  :ok | {:error, :system_error | :not_found}
Link to this function

config_load_verify_locations_from_file(ptr, file)

Specs

config_load_verify_locations_from_file(integer(), binary()) ::
  :ok | {:error, :system_error | :not_found}

Specs

config_new() :: {:ok, integer()} | {:error, :system_error | :not_found}
Link to this function

config_set_ack_delay_exponent(ptr, v)

Specs

config_set_ack_delay_exponent(integer(), non_neg_integer()) ::
  :ok | {:error, :system_error | :not_found}
Link to this function

config_set_application_protos(ptr, protos)

Specs

config_set_application_protos(integer(), binary()) ::
  :ok | {:error, :system_error | :not_found}
Link to this function

config_set_cc_algorithm_name(ptr, name)

Specs

config_set_cc_algorithm_name(integer(), binary()) ::
  :ok | {:error, :system_error | :not_found}
Link to this function

config_set_disable_active_migration(ptr, v)

Specs

config_set_disable_active_migration(integer(), boolean()) ::
  :ok | {:error, :system_error | :not_found}
Link to this function

config_set_initial_max_data(ptr, v)

Specs

config_set_initial_max_data(integer(), non_neg_integer()) ::
  :ok | {:error, :system_error | :not_found}
Link to this function

config_set_initial_max_stream_data_bidi_local(ptr, v)

Specs

config_set_initial_max_stream_data_bidi_local(integer(), non_neg_integer()) ::
  :ok | {:error, :system_error | :not_found}
Link to this function

config_set_initial_max_stream_data_bidi_remote(ptr, v)

Specs

config_set_initial_max_stream_data_bidi_remote(integer(), non_neg_integer()) ::
  :ok | {:error, :system_error | :not_found}
Link to this function

config_set_initial_max_stream_data_uni(ptr, v)

Specs

config_set_initial_max_stream_data_uni(integer(), non_neg_integer()) ::
  :ok | {:error, :system_error | :not_found}
Link to this function

config_set_initial_max_streams_bidi(ptr, v)

Specs

config_set_initial_max_streams_bidi(integer(), non_neg_integer()) ::
  :ok | {:error, :system_error | :not_found}
Link to this function

config_set_initial_max_streams_uni(ptr, v)

Specs

config_set_initial_max_streams_uni(integer(), non_neg_integer()) ::
  :ok | {:error, :system_error | :not_found}
Link to this function

config_set_max_ack_delay(ptr, v)

Specs

config_set_max_ack_delay(integer(), non_neg_integer()) ::
  :ok | {:error, :system_error | :not_found}
Link to this function

config_set_max_idle_timeout(ptr, v)

Specs

config_set_max_idle_timeout(integer(), non_neg_integer()) ::
  :ok | {:error, :system_error | :not_found}
Link to this function

config_set_max_udp_payload_size(ptr, v)

Specs

config_set_max_udp_payload_size(integer(), non_neg_integer()) ::
  :ok | {:error, :system_error | :not_found}
Link to this function

config_verify_peer(ptr, verify)

Specs

config_verify_peer(integer(), boolean()) ::
  :ok | {:error, :system_error | :not_found}
Link to this function

connection_accept(config_ptr, scid, odcid, peer, sender_pid, stream_buf_size)

Specs

connection_accept(
  integer(),
  binary(),
  binary(),
  term(),
  pid(),
  non_neg_integer()
) :: {:ok, integer()} | {:error, :system_error | :not_found}
Link to this function

connection_accept_connect_request(conn_ptr)

Specs

connection_accept_connect_request(integer()) ::
  {:ok, non_neg_integer()} | {:error, :system_error | :already_closed}
Link to this function

connection_close(conn, app, err, reason)

Specs

connection_close(integer(), boolean(), non_neg_integer(), binary()) ::
  {:ok, non_neg_integer()} | {:error, :system_error | :already_closed}
Link to this function

connection_destroy(conn_ptr)

Specs

connection_destroy(integer()) :: :ok | {:error, :system_error | :not_found}
Link to this function

connection_dgram_send(conn, data)

Specs

connection_dgram_send(integer(), binary()) ::
  {:ok, non_neg_integer()} | {:error, :system_error | :already_closed}
Link to this function

connection_is_closed(conn)

Specs

connection_is_closed(integer()) :: boolean()
Link to this function

connection_on_packet(pid, conn, packet)

Specs

connection_on_packet(pid(), integer(), binary()) ::
  {:ok, non_neg_integer()} | {:error, :system_error | :already_closed}
Link to this function

connection_on_timeout(conn)

Specs

connection_on_timeout(integer()) ::
  {:ok, non_neg_integer()} | {:error, :system_error | :already_closed}
Link to this function

connection_open_stream(conn_ptr, is_bidi)

Specs

connection_open_stream(integer(), boolean()) ::
  {:ok, non_neg_integer(), non_neg_integer()}
  | {:error, :system_error | :already_closed}
Link to this function

connection_reject_connect_request(conn_ptr, code)

Specs

connection_reject_connect_request(integer(), integer()) ::
  {:ok, non_neg_integer()} | {:error, :system_error | :already_closed}
Link to this function

connection_stream_send(conn, stream_id, data, fin)

Specs

connection_stream_send(integer(), non_neg_integer(), binary(), boolean()) ::
  {:ok, non_neg_integer()} | {:error, :system_error | :already_closed}

Specs

cpu_num() :: integer() | {:error, :system_error | :not_found}
Link to this function

packet_builder_build_negotiate_version(builder, scid, dcid)

Specs

packet_builder_build_negotiate_version(integer(), binary(), binary()) ::
  {:ok, binary()} | {:error, :system_error}
Link to this function

packet_builder_build_retry(builder, scid, dcid, new_scid, token, version)

Specs

packet_builder_build_retry(
  integer(),
  binary(),
  binary(),
  binary(),
  binary(),
  non_neg_integer()
) :: {:ok, binary()} | {:error, :system_error}
Link to this function

packet_builder_destroy(builder)

Specs

packet_builder_destroy(integer()) :: :ok | {:error, :system_error}
Link to this function

packet_builder_new()

Specs

packet_builder_new() :: {:ok, integer()} | {:error, :system_error}
Link to this function

socket_address_from_string(address)

Specs

socket_address_from_string(binary()) :: {:ok, term()} | {:error, :bad_format}
Link to this function

socket_address_parts(address)

Specs

socket_address_parts(term()) :: {:ok, binary(), non_neg_integer()}
Link to this function

socket_destroy(ptr)

Specs

socket_destroy(integer()) :: :ok | {:error, :system_error | :not_found}
Link to this function

socket_new(num_node, read_timeout, write_timeout)

Specs

socket_new(integer(), non_neg_integer(), non_neg_integer()) ::
  {:ok, integer()} | {:error, :system_error | :socket_error}
Link to this function

socket_sender_destroy(socket_ptr)

Specs

socket_sender_destroy(integer()) :: :ok | {:error, :system_error | :not_found}
Link to this function

socket_sender_get(socket_ptr, idx)

Specs

socket_sender_get(integer(), non_neg_integer()) ::
  {:ok, integer()} | {:error, :system_error | :not_found}
Link to this function

socket_sender_send(socket_ptr, addr, packet)

Specs

socket_sender_send(integer(), term(), binary()) ::
  :ok | {:error, :system_error | :not_found}
Link to this function

socket_start(ptr, address, pid, target_pids)

Specs

socket_start(integer(), binary(), pid(), [pid()]) ::
  :ok | {:error, :system_error | :not_found}