Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
type 'a monad = 'a Lwt.t
type cxn_data = {
clientid : string;
userpass : cxn_userpass option;
will : (string * string) option;
flags : cxn_flags list;
timer : int;
}
type msg_data =
| Connect of cxn_data
| Connack of cxnack_flags
| Subscribe of int * (string * qos) list
| Suback of int * qos list
| Unsubscribe of int * string list
| Unsuback of int
| Publish of int option * string * string
| Puback of int
| Pubrec of int
| Pubrel of int
| Pubcomp of int
| Pingreq
| Pingresp
| Disconnect
| Asdf
type pkt_opt = bool * qos * bool
val connect :
?userpass:cxn_userpass ->
?will:(string * string) ->
?flags:cxn_flags list ->
?timer:int ->
?opt:pkt_opt ->
string ->
string
val connack : ?opt:pkt_opt -> cxnack_flags -> string
val publish : ?opt:pkt_opt -> ?id:int -> string -> string -> string
val pubrel : ?opt:pkt_opt -> int -> string
val unsubscribe : ?opt:pkt_opt -> ?id:int -> string list -> string
val tests : OUnit.test list
module MqttClient : sig ... end
module MqttServer : sig ... end