Requiem.QUIC.NIF (requiem v0.2.0-rc.0)

Link to this section Summary

Functions

Link to this section Functions

Link to this function

config_enable_dgram(module, enabled, recv_queue_len, send_queue_len)

Specs

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

config_enable_early_data(module)

Specs

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

config_enable_hystart(module, v)

Specs

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

config_grease(module, grease)

Specs

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

config_load_cert_chain_from_pem_file(module, file)

Specs

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

config_load_priv_key_from_pem_file(module, file)

Specs

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

config_load_verify_locations_from_directory(module, dir)

Specs

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

config_load_verify_locations_from_file(module, file)

Specs

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

config_set_ack_delay_exponent(module, v)

Specs

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

config_set_application_protos(module, protos)

Specs

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

config_set_cc_algorithm_name(module, name)

Specs

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

config_set_disable_active_migration(module, v)

Specs

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

config_set_initial_max_data(module, v)

Specs

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

config_set_initial_max_stream_data_bidi_local(module, v)

Specs

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

config_set_initial_max_stream_data_bidi_remote(module, v)

Specs

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

config_set_initial_max_stream_data_uni(module, v)

Specs

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

config_set_initial_max_streams_bidi(module, v)

Specs

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

config_set_initial_max_streams_uni(module, v)

Specs

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

config_set_max_ack_delay(module, v)

Specs

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

config_set_max_idle_timeout(module, v)

Specs

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

config_set_max_udp_payload_size(module, v)

Specs

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

config_verify_peer(module, verify)

Specs

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

connection_accept(module, scid, odcid)

Specs

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

connection_close(pid, conn, app, err, reason)

Specs

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

connection_dgram_send(pid, conn, data)

Specs

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

connection_is_closed(conn)

Specs

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

connection_on_packet(pid, conn, packet)

Specs

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

connection_on_timeout(pid, conn)

Specs

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

connection_stream_send(pid, conn, stream_id, data)

Specs

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

packet_build_buffer_create()

Specs

packet_build_buffer_create() :: {:ok, term()} | {:error, :system_error}
Link to this function

packet_build_negotiate_version(buffer, scid, dcid)

Specs

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

packet_build_retry(buffer, scid, dcid, new_scid, token, version)

Specs

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

packet_parse_header(packet)

Specs

packet_parse_header(binary()) ::
  {:ok, binary(), binary(), binary(), non_neg_integer(), atom(), boolean()}
  | {:error, :system_error | :bad_format}
Link to this function

quic_init(module, stream_buffer_num, stream_buffer_size)

Specs

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

socket_address_parts(address)

Specs

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

socket_close(module)

Specs

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

socket_open(module, address, pid, target_pids, event_capacity, poll_interval)

Specs

socket_open(
  binary(),
  binary(),
  pid(),
  [pid()],
  non_neg_integer(),
  non_neg_integer()
) :: :ok | {:error, :system_error | :cant_bind}
Link to this function

socket_send(module, addr, packet)

Specs

socket_send(binary(), term(), binary()) ::
  :ok | {:error, :system_error | :not_found}