Behaviours: gen_fsm.
Authors: Mickael Remond (mickael.remond@process-one.net).
The module exmpp_session puts together the mechanism to connect to an XMPP server, using various authentication mechanisms and network layers.
This module is intended to be used directly by client developers.
auth(Session, JID::Jid, Password, Method) -> Reply
Set the authentication info (user credentials) for the session. Method = password | digest | "PLAIN" | "ANONYMOUS" | "DIGEST-MD5" | string()
auth_basic(Session, JID, Password) -> any()
auth_basic_digest(Session, JID, Password) -> any()
auth_info(Session, JID, Password) -> any()
auth_method(Session, Method) -> Reply
Set the authentication method for the session.
code_change(OldVsn, StateName, State, Extra) -> any()
connect_BOSH(Session, URL, Server, Options) -> any()
connect_SSL(Session, Server) -> any()
connect_SSL(Session, Server, Port) -> any()
connect_SSL(Session, Server, Port, Options) -> any()
connect_TCP(Session, Server) -> any()
connect_TCP(Session, Server, Port) -> any()
connect_TCP(Session, Server, Port, Options) -> any()
get_connection_property(Session::pid(), Prop::atom()) -> {ok, any()} | {error, any()}
Get a property of the underling connection (socket or bosh connection)
See documentation on exmpp_socket and exmpp_bosh to see the supported properties. Returns {error, undefined} if the property is not defined for that kind of connection.handle_event(Event, StateName, State) -> any()
handle_info(Info, StateName, State) -> any()
handle_sync_event(Event, From, StateName, State) -> any()
init(X1) -> any()
logged_in(Xmlstreamelement, State) -> any()
logged_in(X1, From, State) -> any()
login(Session) -> any()
login(Session, Mechanism) -> any()
register_account(Session, Password) -> any()
register_account(Session, Username, Password) -> any()
send_packet(Session, Packet) -> any()
set_controlling_process(Session, Client) -> any()
setup(UnknownMessage, From, State) -> any()
start() -> any()
start(X1) -> any()
start_debug() -> any()
start_link() -> any()
start_link(X1) -> any()
stop(Session) -> any()
stream_closed(Signal, State) -> any()
stream_closed(Signal, From, State) -> any()
stream_error(Xmlstreamend, State) -> any()
stream_error(Signal, From, State) -> any()
stream_opened(Xmlstreamelement, State) -> any()
stream_opened(X1, From, State) -> any()
terminate(Reason, StateName, State) -> any()
wait_for_auth_result(Xmlstreamelement, State) -> any()
wait_for_bind_response(Xmlstreamelement, State) -> any()
wait_for_compression_result(Xmlstreamelement, State) -> any()
wait_for_legacy_auth_method(Xmlstreamelement, State) -> any()
wait_for_register_result(Xmlstreamelement, State) -> any()
wait_for_sasl_response(Xmlstreamelement, State) -> any()
wait_for_session_response(Xmlstreamelement, State) -> any()
wait_for_starttls_result(Xmlstreamelement, State) -> any()
wait_for_stream(Xmlstreamstart, State) -> any()
wait_for_stream(Event, From, State) -> any()
wait_for_stream_features(Xmlstreamelement, State) -> any()
Generated by EDoc, Jun 18 2013, 12:50:58.