Builder.Libp2pConfig
val has_statedir : t -> bool
val statedir_get : t -> string
val statedir_set : t -> string -> unit
val has_private_key : t -> bool
val private_key_get : t -> string
val private_key_set : t -> string -> unit
val has_network_id : t -> bool
val network_id_get : t -> string
val network_id_set : t -> string -> unit
val has_listen_on : t -> bool
val listen_on_get :
t ->
( Capnp.Message.rw, Multiaddr.t, array_t ) Capnp.Array.t
val listen_on_get_list : t -> Multiaddr.t list
val listen_on_get_array : t -> Multiaddr.t array
val listen_on_set :
t ->
( Capnp.Message.rw, Multiaddr.t, array_t ) Capnp.Array.t ->
( Capnp.Message.rw, Multiaddr.t, array_t ) Capnp.Array.t
val listen_on_set_list :
t ->
Multiaddr.t list ->
( Capnp.Message.rw, Multiaddr.t, array_t ) Capnp.Array.t
val listen_on_set_array :
t ->
Multiaddr.t array ->
( Capnp.Message.rw, Multiaddr.t, array_t ) Capnp.Array.t
val listen_on_init :
t ->
int ->
( Capnp.Message.rw, Multiaddr.t, array_t ) Capnp.Array.t
val metrics_port_get : t -> int
val metrics_port_set_exn : t -> int -> unit
val has_external_multiaddr : t -> bool
val external_multiaddr_get : t -> Multiaddr.t
val external_multiaddr_set_reader :
t ->
Multiaddr.struct_t reader_t ->
Multiaddr.t
val external_multiaddr_set_builder : t -> Multiaddr.t -> Multiaddr.t
val external_multiaddr_init : t -> Multiaddr.t
val unsafe_no_trust_ip_get : t -> bool
val unsafe_no_trust_ip_set : t -> bool -> unit
val flood_get : t -> bool
val flood_set : t -> bool -> unit
val peer_exchange_get : t -> bool
val peer_exchange_set : t -> bool -> unit
val has_direct_peers : t -> bool
val direct_peers_get :
t ->
( Capnp.Message.rw, Multiaddr.t, array_t ) Capnp.Array.t
val direct_peers_get_list : t -> Multiaddr.t list
val direct_peers_get_array : t -> Multiaddr.t array
val direct_peers_set :
t ->
( Capnp.Message.rw, Multiaddr.t, array_t ) Capnp.Array.t ->
( Capnp.Message.rw, Multiaddr.t, array_t ) Capnp.Array.t
val direct_peers_set_list :
t ->
Multiaddr.t list ->
( Capnp.Message.rw, Multiaddr.t, array_t ) Capnp.Array.t
val direct_peers_set_array :
t ->
Multiaddr.t array ->
( Capnp.Message.rw, Multiaddr.t, array_t ) Capnp.Array.t
val direct_peers_init :
t ->
int ->
( Capnp.Message.rw, Multiaddr.t, array_t ) Capnp.Array.t
val has_seed_peers : t -> bool
val seed_peers_get :
t ->
( Capnp.Message.rw, Multiaddr.t, array_t ) Capnp.Array.t
val seed_peers_get_list : t -> Multiaddr.t list
val seed_peers_get_array : t -> Multiaddr.t array
val seed_peers_set :
t ->
( Capnp.Message.rw, Multiaddr.t, array_t ) Capnp.Array.t ->
( Capnp.Message.rw, Multiaddr.t, array_t ) Capnp.Array.t
val seed_peers_set_list :
t ->
Multiaddr.t list ->
( Capnp.Message.rw, Multiaddr.t, array_t ) Capnp.Array.t
val seed_peers_set_array :
t ->
Multiaddr.t array ->
( Capnp.Message.rw, Multiaddr.t, array_t ) Capnp.Array.t
val seed_peers_init :
t ->
int ->
( Capnp.Message.rw, Multiaddr.t, array_t ) Capnp.Array.t
val has_gating_config : t -> bool
val gating_config_get : t -> GatingConfig.t
val gating_config_set_reader :
t ->
GatingConfig.struct_t reader_t ->
GatingConfig.t
val gating_config_set_builder : t -> GatingConfig.t -> GatingConfig.t
val gating_config_init : t -> GatingConfig.t
val max_connections_get : t -> Stdint.Uint32.t
val max_connections_get_int_exn : t -> int
val max_connections_set : t -> Stdint.Uint32.t -> unit
val max_connections_set_int_exn : t -> int -> unit
val validation_queue_size_get : t -> Stdint.Uint32.t
val validation_queue_size_get_int_exn : t -> int
val validation_queue_size_set : t -> Stdint.Uint32.t -> unit
val validation_queue_size_set_int_exn : t -> int -> unit
val peer_protection_ratio_get : t -> float
val peer_protection_ratio_set : t -> float -> unit
val min_connections_get : t -> Stdint.Uint32.t
val min_connections_get_int_exn : t -> int
val min_connections_set : t -> Stdint.Uint32.t -> unit
val min_connections_set_int_exn : t -> int -> unit
val has_known_private_ip_nets : t -> bool
val known_private_ip_nets_get_list : t -> string list
val known_private_ip_nets_get_array : t -> string array
val has_topic_config : t -> bool
val topic_config_get :
t ->
( Capnp.Message.rw, TopicLevel.t, array_t ) Capnp.Array.t
val topic_config_get_list : t -> TopicLevel.t list
val topic_config_get_array : t -> TopicLevel.t array
val topic_config_set :
t ->
( Capnp.Message.rw, TopicLevel.t, array_t ) Capnp.Array.t ->
( Capnp.Message.rw, TopicLevel.t, array_t ) Capnp.Array.t
val topic_config_set_list :
t ->
TopicLevel.t list ->
( Capnp.Message.rw, TopicLevel.t, array_t ) Capnp.Array.t
val topic_config_set_array :
t ->
TopicLevel.t array ->
( Capnp.Message.rw, TopicLevel.t, array_t ) Capnp.Array.t
val topic_config_init :
t ->
int ->
( Capnp.Message.rw, TopicLevel.t, array_t ) Capnp.Array.t
val init_root : ?message_size:int -> unit -> t