Lines Matching refs:out_sz
82 … mp_uint_t out_sz = stream_p->read(self->sock, self->buf + self->buf_pos, self->to_recv, errcode); in websocket_read() local
83 if (out_sz == 0 || out_sz == MP_STREAM_ERROR) { in websocket_read()
84 return out_sz; in websocket_read()
86 self->buf_pos += out_sz; in websocket_read()
87 self->to_recv -= out_sz; in websocket_read()
166 mp_uint_t out_sz = 0; in websocket_read() local
173 out_sz = stream_p->read(self->sock, buf, sz, errcode); in websocket_read()
174 if (out_sz == 0 || out_sz == MP_STREAM_ERROR) { in websocket_read()
175 return out_sz; in websocket_read()
178 sz = out_sz; in websocket_read()
183 self->msg_sz -= out_sz; in websocket_read()
208 if (out_sz != 0) { in websocket_read()
209 return out_sz; in websocket_read()
241 mp_uint_t out_sz = mp_stream_write_exactly(self->sock, header, hdr_sz, errcode); in websocket_write() local
243 out_sz = mp_stream_write_exactly(self->sock, buf, size, errcode); in websocket_write()
254 return out_sz; in websocket_write()