Module exmpp_server_binding

The module exmpp_server_binding implements the receiving entity side of Resource Binding.

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

Description

The module exmpp_server_binding implements the receiving entity side of Resource Binding.

Function Index

bind/2Prepare a reply to IQ to inform the client of its final JID.
error/2Prepare an error reply to IQ.
feature/0Make a feature announcement child.
wished_resource/1Return the resource the client wants or undefined if he doesn't ask for any.

Function Details

bind/2

bind(IQ, Jid) -> Reply

Prepare a reply to IQ to inform the client of its final JID.

error/2

error(IQ, Condition) -> Error_IQ

Prepare an error reply to IQ.

feature/0

feature() -> Feature

Make a feature announcement child.

The result should then be passed to exmpp_stream:features/1.

wished_resource/1

wished_resource(IQ) -> Resource | undefined

throws {resource_binding, wished_resource, invalid_bind, IQ}

Return the resource the client wants or undefined if he doesn't ask for any.


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