Lines Matching refs:amsg
46 struct msg amsg; /* the one pending message... */ member
98 if (!vhd->amsg.payload) in callback_minimal()
105 m = lws_write(wsi, ((unsigned char *)vhd->amsg.payload) + in callback_minimal()
106 LWS_PRE, vhd->amsg.len, LWS_WRITE_TEXT); in callback_minimal()
107 if (m < (int)vhd->amsg.len) { in callback_minimal()
116 if (vhd->amsg.payload) in callback_minimal()
117 __minimal_destroy_message(&vhd->amsg); in callback_minimal()
119 vhd->amsg.len = len; in callback_minimal()
121 vhd->amsg.payload = malloc(LWS_PRE + len); in callback_minimal()
122 if (!vhd->amsg.payload) { in callback_minimal()
127 memcpy((char *)vhd->amsg.payload + LWS_PRE, in, len); in callback_minimal()