Lines Matching refs:amsg
46 struct msg amsg; /* the one pending message... */ member
104 if (!vhd->amsg.payload) in callback_minimal()
111 m = lws_write(wsi, ((unsigned char *)vhd->amsg.payload) + in callback_minimal()
112 LWS_PRE, vhd->amsg.len, LWS_WRITE_TEXT); in callback_minimal()
113 if (m < (int)vhd->amsg.len) { in callback_minimal()
122 if (vhd->amsg.payload) in callback_minimal()
123 __minimal_destroy_message(&vhd->amsg); in callback_minimal()
125 vhd->amsg.len = len; in callback_minimal()
127 vhd->amsg.payload = malloc(LWS_PRE + len); in callback_minimal()
128 if (!vhd->amsg.payload) { in callback_minimal()
133 memcpy((char *)vhd->amsg.payload + LWS_PRE, in, len); in callback_minimal()