Module libp2p_multistream_client

Function Index

handshake/1
ls/1
negotiate_handler/3
select/2
select_one/3

Function Details

handshake/1


handshake(Connection::libp2p_connection:connection()) -> ok | server_switch | {error, term()}


ls/1


ls(Connection::libp2p_connection:connection()) -> [string()] | {error, term()}


negotiate_handler/3


negotiate_handler(Handlers0::[{string(), term()}], Path::string(), Connection::libp2p_connection:connection()) -> {ok, term()} | server_switch | {error, term()}


select/2


select(Protocol::string(), Connection::libp2p_connection:connection()) -> ok | {error, term()}


select_one/3


select_one(Rest::[tuple()], Index::pos_integer(), Connection::libp2p_connection:connection()) -> tuple() | {error, term()}