Module exmpp_server_compression

The module exmpp_server_compression implements the receiving entity side of Stream Compression (XEP-0138).

Authors: Jean-Sébastien Pédron (js.pedron@meetic-corp.com).

References

Description

The module exmpp_server_compression implements the receiving entity side of Stream Compression (XEP-0138).

Function Index

compressed/0Prepare a <compressed/> element.
failure/1Prepare a <failure/> element.
feature/1Make a feature annoucement child.
selected_method/1Extract the method chosen by the initiating entity.

Function Details

compressed/0

compressed() -> Compressed

Prepare a <compressed/> element.

failure/1

failure(Condition) -> Failure

throws {stream_compression, failure, invalid_condition, Condition}

Prepare a <failure/> element.

feature/1

feature(Methods) -> Feature

throws {stream_compression, feature_announcement, invalid_methods_list, []} | {stream_compression, feature_announcement, invalid_method, Method}

Make a feature annoucement child.

The Methods list must contain at least one method.

Examples of methods are: The result should then be passed to exmpp_stream:features/1.

selected_method/1

selected_method(Xmlel::El) -> Method

Extract the method chosen by the initiating entity.


Generated by EDoc, Jan 21 2011, 01:43:53.