37 bool to_string(
string& out);
40 int update(
const char* data,
int dlen);
48 void set_keep_alive(
unsigned short keep_alive);
49 void set_cid(
const char* cid);
50 void set_username(
const char*
name);
51 void set_passwd(
const char* passwd);
53 void set_will_topic(
const char* topic);
54 void set_will_msg(
const char* msg);
55 void clean_session(
void);
62 return cid_.empty() ? NULL : cid_.c_str();;
66 return username_.empty() ? NULL : username_.c_str();
70 return passwd_.empty() ? NULL : passwd_.c_str();
78 return will_topic_.empty() ? NULL : will_topic_.c_str();
82 return will_msg_.empty() ? NULL : will_msg_.c_str();
85 bool has_session(
void)
const;
94 unsigned char conn_flags_;
95 unsigned short keep_alive_;
107 int update_header_var(
const char* data,
int dlen);
108 int update_cid_len(
const char* data,
int dlen);
109 int update_cid_val(
const char* data,
int dlen);
110 int update_username_len(
const char* data,
int dlen);
111 int update_username_val(
const char* data,
int dlen);
112 int update_passwd_len(
const char* data,
int dlen);
113 int update_passwd_val(
const char* data,
int dlen);
114 int update_will_topic_len(
const char* data,
int dlen);
115 int update_will_topic_val(
const char* data,
int dlen);
116 int update_will_msg_len(
const char* data,
int dlen);
117 int update_will_msg_val(
const char* data,
int dlen);
const char * get_passwd(void) const
HTTP_API void const char * name
unsigned short get_keep_alive(void) const
const char * get_username(void) const
bool finished(void) const
const char * get_will_msg(void) const
mqtt_qos_t get_will_qos(void) const
const char * get_cid(void) const
const char * get_will_topic(void) const