summaryrefslogtreecommitdiff
path: root/docs/api/plugins/xep_0231.rst
blob: c8a863cb93e750cbc1fca69b7b118895ac8befc7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53

XEP-0231: Bits of Binary
========================

.. module:: slixmpp.plugins.xep_0231

.. autoclass:: XEP_0231
    :members:
    :exclude-members: session_bind, plugin_init, plugin_end

.. _api-0231:

Internal API methods
--------------------

The default API handlers for this plugin manage an in-memory cache of
bits of binary by content-id.

.. glossary::

    set_bob
        - **jid**: :class:`~.JID` sending the bob
        - **node**: unused
        - **ifrom**: :class:`~JID` receiving the bob
        - **args**: :class:`~.BitsOfBinary` element.

        Set a BoB in the cache.

    get_bob
        - **jid**: :class:`~.JID` receiving the bob
        - **node**: unused
        - **ifrom**: :class:`~JID` sending the bob
        - **args**: ``str`` content-id of the bob
        - **returns**: :class:`~.BitsOfBinary` element.

        Get a BoB from the cache.

    del_bob
        - **jid**: unused
        - **node**: unused
        - **ifrom**: :class:`~JID` sending the bob
        - **args**: ``str`` content-id of the bob

        Delete a BoB from the cache.


Stanza elements
---------------

.. automodule:: slixmpp.plugins.xep_0231.stanza
    :members:
    :undoc-members: