Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
157 lines (83 sloc) 3.83 KB

Module claws_xmpp_comp

Behaviours: claws, gen_statem.

Data Types

state_data()


state_data() = #data{domain = binary(), password = binary(), host = inet:socket_address(), port = inet:port_number(), socket = gen_tcp:socket(), trimmed = boolean(), adjust_attrs = boolean(), ping = false | pos_integer(), stream = any()}

xmpp_conn_state()


xmpp_conn_state() = disconnected | retrying | connected | stream_init | authenticate | ready

Function Index

authenticate/3
code_change/4
connect/0
connected/3
disconnect/0
disconnected/3
handle_event/4
init/1
ready/3
retrying/3
send/2
send/3
start_link/1
start_link/2
stream_init/3
terminate/3

Function Details

authenticate/3

authenticate(X1, X2, Data) -> any()

code_change/4

code_change(OldVsn, State, Data, Extra) -> any()

connect/0


connect() -> ok

connected/3

connected(X1, X2, Data) -> any()

disconnect/0


disconnect() -> ok

disconnected/3

disconnected(Type, X2, Data) -> any()

handle_event/4

handle_event(Type, Packet, State, Data) -> any()

init/1


init(Params::#{}) -> {ok, xmpp_conn_state(), state_data()}

ready/3

ready(X1, X2, Data) -> any()

retrying/3

retrying(X1, X2, Data) -> any()

send/2

send(Data, JID) -> any()

send/3

send(Data, JID, ID) -> any()

start_link/1


start_link(Params::#{}) -> {ok, pid()}

start_link/2


start_link(Name::atom(), Params::#{}) -> {ok, pid()}

stream_init/3

stream_init(X1, X2, Data) -> any()

terminate/3

terminate(Reason, StateName, StateData) -> any()

You can’t perform that action at this time.