module Jabber: sig end
Defines classes for the IQ, Presence, and Message Jabber packets.
exception Bad_packet
class type packet_base = object end
The base type of packet objects.
type
iq_type =
| |
Get |
| |
Set |
| |
Result |
| |
IQError |
iq "type" attribute values
class type iq = object end
The type of IQ packet objects
val mk_iq : string -> iq
Create a blank IQ object given the prefix to use for jabber:client
type
presence_type =
| |
Unavailable |
| |
Subscribe |
| |
Subscribed |
| |
Unsubscribe |
| |
Unsubscribed |
| |
Probe |
| |
PresError |
presence "type" attribute values
class type presence = object end
the type of presence packet objects
val mk_presence : string -> presence
Create a blank presence object given the prefix to use for jabber:client
type
message_type =
| |
Normal |
| |
Chat |
| |
Groupchat |
| |
Headline |
| |
Error |
message "type" attribute values
class type message = object end
the type of message packet objects
val mk_message : string -> message
create a blank message object given the prefix to use for jabber:client
type
packet =
The union type of packets.
val packet_of_ele : Yaxpodom.ele -> packet
Construct a packet from an element
Raises Bad_packet
if ele is not of jabber:client
val packet_base_of_packet : packet -> packet_base
val packet_from : packet -> string option
val packet_to : packet -> string option
val packet_id : packet -> string option
Generic accessors.