Connect config
Functions
connect_to_local_federation(Charstring name,Charstring new_server_name)->Boolean
connect_to_local_federation(Charstring name)->Boolean
connect_using_config(Record config,Boolean as_edge)->Boolean
Connect to a federation using the config
if as_edge
is false this call
will only register the process as a client.
connect_using_config_blob(Charstring blob,Boolean as_edge)->Boolean
Same as connect_using_config
but the blob is a Base64 encoded string
representation of the config Record.
connect_using_config_blob(Charstring blob,Charstring peername,Boolean as_edge)
->Boolean
Same as connect_using_config
but the blob is a Base64 encoded string
representation of the config Record and peername is overridden
connect_using_config_file(Charstring config,Boolean as_edge)->Boolean
Same as connect_using_config
but will read JSON-config from file on disk.
federation:connect(Charstring name,Charstring peername,Boolean reregister,
Boolean as_edge)->Boolean
Connect to federation using federation file named name
with peername
and
as a client or edge.
federation:get_current()->Charstring
federation:list()->Bag of Charstring file
federation:save(Charstring name,Charstring blob)->Charstring
Save blob
into federation file with name name
federation:set_current(Charstring name)->Charstring
get_all_addrs()->Bag of Vector
get_connect_config(Charstring peer)->Record
Retrieve a connection config to connect as peer
to this federation.
Use this record in a call to connect_using_config
in another sa.engine
to connect. This record contains address, port, host and cryptographic
information neccessary to connect.
get_connect_config(Charstring peer,Record extras)->Record
get_connect_config_blob(Charstring peer,Record extras)->Charstring
Base64 encoded string of get_connect_config
. can be used in conjunction
with connect_using_config_blob
get_connect_config_blob(Charstring peer)->Charstring
read_connect_config_file(Charstring file)->Object
reconnect_using_config_blob(Charstring blob,Charstring peername,Boolean as_edge)
->Boolean
Same as connect_using_config
but the blob is a Base64 encoded string
representation of the config Record and peername is overridden and reregister is
enabled
reconnect_using_config_blob(Charstring blob,Boolean as_edge)->Boolean
Same as connect_using_config
but the blob is a Base64 encoded string
representation of the config Record where reregister is enabled
server_addrs()->Bag of (Charstring,Integer)
Set of configurable server addresses.