/// /// HybridNetDriverSpec.kt /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE. /// https://github.com/mrousavy/nitro /// Copyright © Marc Rousavy @ Margelo /// package com.margelo.nitro.net import androidx.annotation.Keep import com.facebook.jni.HybridData import com.facebook.proguard.annotations.DoNotStrip import com.margelo.nitro.core.ArrayBuffer import com.margelo.nitro.core.HybridObject /** * A Kotlin class representing the NetDriver HybridObject. * Implement this abstract class to create Kotlin-based instances of NetDriver. */ @DoNotStrip @Keep @Suppress( "KotlinJniMissingFunction", "unused", "RedundantSuppression", "RedundantUnitReturnType", "SimpleRedundantLet", "LocalVariableName", "PropertyName", "PrivatePropertyName", "FunctionName" ) abstract class HybridNetDriverSpec: HybridObject() { // Properties // Methods @DoNotStrip @Keep abstract fun createSocket(id: String?): HybridNetSocketDriverSpec @DoNotStrip @Keep abstract fun createServer(): HybridNetServerDriverSpec @DoNotStrip @Keep abstract fun createHttpParser(mode: Double): HybridHttpParserSpec @DoNotStrip @Keep abstract fun createSecureContext(cert: String, key: String, passphrase: String?): Double @DoNotStrip @Keep abstract fun createEmptySecureContext(): Double @DoNotStrip @Keep abstract fun addCACertToSecureContext(scId: Double, ca: String): Unit @DoNotStrip @Keep abstract fun addContextToSecureContext(scId: Double, hostname: String, cert: String, key: String, passphrase: String?): Unit @DoNotStrip @Keep abstract fun setPFXToSecureContext(scId: Double, pfx: ArrayBuffer, passphrase: String?): Unit @DoNotStrip @Keep abstract fun setOCSPResponseToSecureContext(scId: Double, ocsp: ArrayBuffer): Unit @DoNotStrip @Keep abstract fun getTicketKeys(scId: Double): ArrayBuffer? @DoNotStrip @Keep abstract fun setTicketKeys(scId: Double, keys: ArrayBuffer): Unit @DoNotStrip @Keep abstract fun initWithConfig(config: NetConfig): Unit // Default implementation of `HybridObject.toString()` override fun toString(): String { return "[HybridObject NetDriver]" } // C++ backing class @DoNotStrip @Keep protected open class CxxPart(javaPart: HybridNetDriverSpec): HybridObject.CxxPart(javaPart) { // C++ JHybridNetDriverSpec::CxxPart::initHybrid(...) external override fun initHybrid(): HybridData } override fun createCxxPart(): CxxPart { return CxxPart(this) } companion object { protected const val TAG = "HybridNetDriverSpec" } }