All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.netty.incubator.codec.quic.QuicheNativeStaticallyReferencedJniMethods Maven / Gradle / Ivy

There is a newer version: 0.0.69.Final
Show newest version
/*
 * Copyright 2020 The Netty Project
 *
 * The Netty Project licenses this file to you under the Apache License,
 * version 2.0 (the "License"); you may not use this file except in compliance
 * with the License. You may obtain a copy of the License at:
 *
 *   https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations
 * under the License.
 */
package io.netty.incubator.codec.quic;

final class QuicheNativeStaticallyReferencedJniMethods {

    static native int quiche_protocol_version();
    static native int quiche_max_conn_id_len();
    static native int quiche_shutdown_read();
    static native int quiche_shutdown_write();

    static native int quiche_err_done();
    static native int quiche_err_buffer_too_short();
    static native int quiche_err_unknown_version();
    static native int quiche_err_invalid_frame();
    static native int quiche_err_invalid_packet();
    static native int quiche_err_invalid_state();
    static native int quiche_err_invalid_stream_state();
    static native int quiche_err_invalid_transport_param();
    static native int quiche_err_crypto_fail();
    static native int quiche_err_tls_fail();
    static native int quiche_err_flow_control();
    static native int quiche_err_stream_limit();
    static native int quiche_err_final_size();
    static native int quiche_err_stream_stopped();
    static native int quiche_err_stream_reset();
    static native int quiche_err_congestion_control();
    static native int quiche_err_id_limit();
    static native int quiche_err_out_of_identifiers();
    static native int quiche_err_key_update();
    static native int quiche_err_crypto_buffer_exceeded();
    static native int quiche_cc_reno();
    static native int quiche_cc_cubic();
    static native int quiche_cc_bbr();

    static native int quicheRecvInfoOffsetofFrom();
    static native int quicheRecvInfoOffsetofFromLen();
    static native int quicheRecvInfoOffsetofTo();
    static native int quicheRecvInfoOffsetofToLen();

    static native int sizeofQuicheRecvInfo();
    static native int quicheSendInfoOffsetofTo();
    static native int quicheSendInfoOffsetofToLen();
    static native int quicheSendInfoOffsetofFrom();
    static native int quicheSendInfoOffsetofFromLen();

    static native int quicheSendInfoOffsetofAt();

    static native int sizeofQuicheSendInfo();

    static native int afInet();
    static native int afInet6();
    static native int sizeofSockaddrIn();
    static native int sizeofSockaddrIn6();
    static native int sockaddrInOffsetofSinFamily();
    static native int sockaddrInOffsetofSinPort();
    static native int sockaddrInOffsetofSinAddr();
    static native int inAddressOffsetofSAddr();
    static native int sockaddrIn6OffsetofSin6Family();
    static native int sockaddrIn6OffsetofSin6Port();
    static native int sockaddrIn6OffsetofSin6Flowinfo();
    static native int sockaddrIn6OffsetofSin6Addr();
    static native int sockaddrIn6OffsetofSin6ScopeId();
    static native int in6AddressOffsetofS6Addr();
    static native int sizeofSockaddrStorage();
    static native int sizeofSocklenT();
    static native int sizeofSizeT();

    static native int sizeofTimespec();
    static native int timespecOffsetofTvSec();
    static native int timespecOffsetofTvNsec();
    static native int sizeofTimeT();
    static native int sizeofLong();

    static native int quiche_path_event_new();
    static native int quiche_path_event_validated();
    static native int quiche_path_event_failed_validation();
    static native int quiche_path_event_closed();
    static native int quiche_path_event_reused_source_connection_id();
    static native int quiche_path_event_peer_migrated();

    private QuicheNativeStaticallyReferencedJniMethods() { }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy