picoquic/frames.c
void picoquic_update_stream_initial_remote(picoquic_cnx_t* cnx)
{
    picoquic_stream_head_t* stream = picoquic_first_stream(cnx);

    while (stream) {
        if (IS_LOCAL_STREAM_ID(stream->stream_id, cnx->client_mode)) {
            if (IS_BIDIR_STREAM_ID(stream->stream_id)) {
                if (stream->maxdata_remote < cnx->remote_parameters.initial_max_stream_data_bidi_remote) {
                    stream->maxdata_remote = cnx->remote_parameters.initial_max_stream_data_bidi_remote;
                }
            }
            else {
                if (stream->maxdata_remote < cnx->remote_parameters.initial_max_stream_data_uni) {
                    stream->maxdata_remote = cnx->remote_parameters.initial_max_stream_data_uni;
                }
            }
        }
        else if (IS_BIDIR_STREAM_ID(stream->stream_id)) {
            if (stream->maxdata_remote < cnx->remote_parameters.initial_max_stream_data_bidi_local) {
                stream->maxdata_remote = cnx->remote_parameters.initial_max_stream_data_bidi_local;
            }
        }
        stream = picoquic_next_stream(stream);
    };
}
/* if the initial remote has changed, update the existing streams.
 * By definition, this is only needed for streams locally created for 0-RTT traffic.
 */
if the initial remote has changed, update the existing streams.
By definition, this is only needed for streams locally created for 0-RTT traffic.
if the initial remote has changed update the existing streams . By definition this is only needed for streams locally created for 0 - RTT traffic .
void picoquic_update_stream_initial_remote(picoquic_cnx_t* cnx)
{
    picoquic_stream_head_t* stream = picoquic_first_stream(cnx);
    while (stream) {
        if (IS_LOCAL_STREAM_ID(stream->stream_id, cnx->client_mode)) {
            if (IS_BIDIR_STREAM_ID(stream->stream_id)) {
                if (stream->maxdata_remote < cnx->remote_parameters.initial_max_stream_data_bidi_remote) {
                    stream->maxdata_remote = cnx->remote_parameters.initial_max_stream_data_bidi_remote;
                }
            }
            else {
                if (stream->maxdata_remote < cnx->remote_parameters.initial_max_stream_data_uni) {
                    stream->maxdata_remote = cnx->remote_parameters.initial_max_stream_data_uni;
                }
            }
        }
        else if (IS_BIDIR_STREAM_ID(stream->stream_id)) {
            if (stream->maxdata_remote < cnx->remote_parameters.initial_max_stream_data_bidi_local) {
                stream->maxdata_remote = cnx->remote_parameters.initial_max_stream_data_bidi_local;
            }
        }
        stream = picoquic_next_stream(stream);
    };
}
void picoquic_update_stream_initial_remote ( picoquic_cnx_t * cnx ) { picoquic_stream_head_t * stream = picoquic_first_stream ( cnx ) ; while ( stream ) { if ( IS_LOCAL_STREAM_ID ( stream -> stream_id , cnx -> client_mode ) ) { if ( IS_BIDIR_STREAM_ID ( stream -> stream_id ) ) { if ( stream -> maxdata_remote < cnx -> remote_parameters . initial_max_stream_data_bidi_remote ) { stream -> maxdata_remote = cnx -> remote_parameters . initial_max_stream_data_bidi_remote ; } } else { if ( stream -> maxdata_remote < cnx -> remote_parameters . initial_max_stream_data_uni ) { stream -> maxdata_remote = cnx -> remote_parameters . initial_max_stream_data_uni ; } } } else if ( IS_BIDIR_STREAM_ID ( stream -> stream_id ) ) { if ( stream -> maxdata_remote < cnx -> remote_parameters . initial_max_stream_data_bidi_local ) { stream -> maxdata_remote = cnx -> remote_parameters . initial_max_stream_data_bidi_local ; } } stream = picoquic_next_stream ( stream ) ; } ; }
if the initial remote has changed, update the existing streams.
if the initial remote has changed update the existing streams .