Lines Matching refs:multi
929 * \param msg the incoming multi-part message
935 CRMultiBuffer *multi = &(conn->multi);
941 /* Check if there's enough room in the multi-buffer to append 'len' bytes */
942 if ( len + multi->len > multi->max )
944 if ( multi->max == 0 )
946 multi->len = conn->sizeof_buffer_header;
947 multi->max = 8192; /* arbitrary initial size */
950 while ( len + multi->len > multi->max )
952 multi->max <<= 1;
954 crRealloc( &multi->buf, multi->max );
957 dst = (unsigned char *) multi->buf + multi->len;
960 multi->len += len;
964 /* OK, we've collected the last chunk of the multi-part message */
967 (CRMessage *) (((char *) multi->buf) + conn->sizeof_buffer_header),
968 multi->len - conn->sizeof_buffer_header );
971 multi->buf = NULL;
972 multi->len = 0;
973 multi->max = 0;
1090 crNetRecvMulti( conn, &(pRealMsg->multi), len );