|
| 1 | +public abstract interface class org/ton/adnl/Adnl { |
| 2 | + public static final field Companion Lorg/ton/adnl/Adnl$Companion; |
| 3 | + public abstract fun addLocalId (Lorg/ton/api/pk/PrivateKey;)V |
| 4 | + public abstract fun addPeer (Lorg/ton/api/adnl/AdnlIdShort;Lorg/ton/api/pub/PublicKey;Lorg/ton/api/adnl/AdnlAddressList;)V |
| 5 | + public fun getHugePacketMaxSize ()I |
| 6 | + public fun getMtu ()I |
| 7 | + public abstract fun getNetworkEngine ()Lorg/ton/adnl/engine/AdnlNetworkEngine; |
| 8 | + public abstract fun sendMessage (Lorg/ton/api/adnl/AdnlIdShort;Lorg/ton/api/adnl/AdnlIdShort;Lorg/ton/tl/ByteString;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; |
| 9 | + public abstract fun sendQuery-gwCluXo (Lorg/ton/api/adnl/AdnlIdShort;Lorg/ton/api/adnl/AdnlIdShort;Lorg/ton/tl/ByteString;JILkotlin/coroutines/Continuation;)Ljava/lang/Object; |
| 10 | + public static synthetic fun sendQuery-gwCluXo$default (Lorg/ton/adnl/Adnl;Lorg/ton/api/adnl/AdnlIdShort;Lorg/ton/api/adnl/AdnlIdShort;Lorg/ton/tl/ByteString;JILkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; |
| 11 | + public abstract fun subscribeMessage (Lorg/ton/api/adnl/AdnlIdShort;Lorg/ton/adnl/Adnl$MessageHandler;)Lorg/ton/adnl/Adnl$MessageHandler; |
| 12 | + public abstract fun subscribeQuery (Lorg/ton/api/adnl/AdnlIdShort;Lorg/ton/adnl/Adnl$QueryHandler;)Lorg/ton/adnl/Adnl$QueryHandler; |
| 13 | +} |
| 14 | + |
| 15 | +public final class org/ton/adnl/Adnl$Companion { |
| 16 | + public final fun create (Lorg/ton/adnl/engine/AdnlNetworkEngine;)Lorg/ton/adnl/Adnl; |
| 17 | +} |
| 18 | + |
| 19 | +public abstract interface class org/ton/adnl/Adnl$MessageHandler { |
| 20 | + public abstract fun onMessage (Lorg/ton/api/adnl/AdnlIdShort;Lorg/ton/api/adnl/AdnlIdShort;Lorg/ton/tl/ByteString;)V |
| 21 | +} |
| 22 | + |
| 23 | +public abstract interface class org/ton/adnl/Adnl$QueryHandler { |
| 24 | + public abstract fun onQuery (Lorg/ton/api/adnl/AdnlIdShort;Lorg/ton/api/adnl/AdnlIdShort;Lorg/ton/tl/ByteString;)Lorg/ton/tl/ByteString; |
| 25 | +} |
| 26 | + |
| 27 | +public abstract interface class org/ton/adnl/AdnlPeer { |
| 28 | + public abstract fun handlePacket (Lorg/ton/api/adnl/AdnlIdShort;Lorg/ton/api/adnl/AdnlPacketContents;)V |
| 29 | + public abstract fun sendMessages (Lorg/ton/api/adnl/AdnlIdShort;[Lorg/ton/api/adnl/message/AdnlMessage;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; |
| 30 | + public abstract fun sendQuery-exY8QGI (Lorg/ton/api/adnl/AdnlIdShort;Lorg/ton/tl/ByteString;JLkotlin/coroutines/Continuation;)Ljava/lang/Object; |
| 31 | + public static synthetic fun sendQuery-exY8QGI$default (Lorg/ton/adnl/AdnlPeer;Lorg/ton/api/adnl/AdnlIdShort;Lorg/ton/tl/ByteString;JLkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; |
| 32 | +} |
| 33 | + |
| 34 | +public abstract interface class org/ton/adnl/AdnlPeerSession { |
| 35 | + public abstract fun getAdnl ()Lorg/ton/adnl/Adnl; |
| 36 | + public fun getHugePacketMaxSize ()I |
| 37 | + public fun getMtu ()I |
| 38 | + public fun handleMessage (Lorg/ton/api/adnl/message/AdnlMessage;)V |
| 39 | + public abstract fun handleMessage (Lorg/ton/api/adnl/message/AdnlMessageAnswer;)V |
| 40 | + public abstract fun handleMessage (Lorg/ton/api/adnl/message/AdnlMessageConfirmChannel;)V |
| 41 | + public abstract fun handleMessage (Lorg/ton/api/adnl/message/AdnlMessageCreateChannel;)V |
| 42 | + public abstract fun handleMessage (Lorg/ton/api/adnl/message/AdnlMessageCustom;)V |
| 43 | + public fun handleMessage (Lorg/ton/api/adnl/message/AdnlMessageNop;)V |
| 44 | + public abstract fun handleMessage (Lorg/ton/api/adnl/message/AdnlMessagePart;)V |
| 45 | + public abstract fun handleMessage (Lorg/ton/api/adnl/message/AdnlMessageQuery;)V |
| 46 | + public abstract fun handleMessage (Lorg/ton/api/adnl/message/AdnlMessageReinit;)V |
| 47 | + public abstract fun handlePacket (Lorg/ton/api/adnl/AdnlPacketContents;)V |
| 48 | + public abstract fun sendMessages ([Lorg/ton/api/adnl/message/AdnlMessage;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; |
| 49 | + public abstract fun sendQuery-8Mi8wO0 (Lorg/ton/tl/ByteString;JLkotlin/coroutines/Continuation;)Ljava/lang/Object; |
| 50 | + public static synthetic fun sendQuery-8Mi8wO0$default (Lorg/ton/adnl/AdnlPeerSession;Lorg/ton/tl/ByteString;JLkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; |
| 51 | +} |
| 52 | + |
| 53 | +public abstract interface class org/ton/adnl/connection/AdnlClient { |
| 54 | + public abstract fun sendQuery-8Mi8wO0 (Lio/ktor/utils/io/core/ByteReadPacket;JLkotlin/coroutines/Continuation;)Ljava/lang/Object; |
| 55 | +} |
| 56 | + |
| 57 | +public final class org/ton/adnl/connection/AdnlClientImpl : org/ton/adnl/connection/AdnlClient { |
| 58 | + public static final field Companion Lorg/ton/adnl/connection/AdnlClientImpl$Companion; |
| 59 | + public fun <init> (Lorg/ton/api/liteserver/LiteServerDesc;)V |
| 60 | + public fun sendQuery-8Mi8wO0 (Lio/ktor/utils/io/core/ByteReadPacket;JLkotlin/coroutines/Continuation;)Ljava/lang/Object; |
| 61 | +} |
| 62 | + |
| 63 | +public final class org/ton/adnl/connection/AdnlClientImpl$Companion { |
| 64 | +} |
| 65 | + |
| 66 | +public final class org/ton/adnl/connection/AdnlConnection : java/io/Closeable, kotlinx/coroutines/CoroutineScope { |
| 67 | + public static final field CONNECTION_ATTEMPTS I |
| 68 | + public static final field Companion Lorg/ton/adnl/connection/AdnlConnection$Companion; |
| 69 | + public fun <init> (Lorg/ton/api/liteserver/LiteServerDesc;Lorg/ton/adnl/connection/AdnlConnectionFactory;Lkotlin/coroutines/CoroutineContext;Lkotlin/jvm/functions/Function0;)V |
| 70 | + public fun close ()V |
| 71 | + public final fun execute (Lorg/ton/adnl/connection/AdnlRequestData;Lkotlin/coroutines/CoroutineContext;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; |
| 72 | + public fun getCoroutineContext ()Lkotlin/coroutines/CoroutineContext; |
| 73 | + public final fun getLiteServerDesc ()Lorg/ton/api/liteserver/LiteServerDesc; |
| 74 | +} |
| 75 | + |
| 76 | +public final class org/ton/adnl/connection/AdnlConnection$Companion { |
| 77 | + public final fun getCONNECT_TIMEOUT-UwyO8pc ()J |
| 78 | + public final fun getMAX_IDLE_TIME-UwyO8pc ()J |
| 79 | +} |
| 80 | + |
| 81 | +public final class org/ton/adnl/connection/AdnlConnectionFactory { |
| 82 | + public fun <init> ()V |
| 83 | + public final fun connect (Lorg/ton/api/liteserver/LiteServerDesc;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; |
| 84 | +} |
| 85 | + |
| 86 | +public final class org/ton/adnl/connection/AdnlConnectionPool : java/io/Closeable, kotlinx/coroutines/CoroutineScope { |
| 87 | + public fun <init> ()V |
| 88 | + public fun close ()V |
| 89 | + public fun getCoroutineContext ()Lkotlin/coroutines/CoroutineContext; |
| 90 | + public final fun selectConnection (Lorg/ton/api/liteserver/LiteServerDesc;)Lorg/ton/adnl/connection/AdnlConnection; |
| 91 | +} |
| 92 | + |
| 93 | +public final class org/ton/adnl/connection/AdnlRequestData { |
| 94 | + public fun <init> ([BLkotlinx/coroutines/Job;)V |
| 95 | + public final fun getBody ()[B |
| 96 | + public final fun getExecutionContext ()Lkotlinx/coroutines/Job; |
| 97 | +} |
| 98 | + |
| 99 | +public final class org/ton/adnl/connection/AdnlResponseData { |
| 100 | + public fun <init> (Lkotlinx/datetime/Instant;Lio/ktor/utils/io/core/ByteReadPacket;Lkotlin/coroutines/CoroutineContext;)V |
| 101 | + public final fun getBody ()Lio/ktor/utils/io/core/ByteReadPacket; |
| 102 | + public final fun getCallContext ()Lkotlin/coroutines/CoroutineContext; |
| 103 | + public final fun getRequestTime ()Lkotlinx/datetime/Instant; |
| 104 | + public final fun getResponseTime ()Lkotlinx/datetime/Instant; |
| 105 | +} |
| 106 | + |
| 107 | +public abstract interface class org/ton/adnl/engine/AdnlNetworkEngine { |
| 108 | + public abstract fun receiveDatagram (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; |
| 109 | + public abstract fun sendDatagram (Lorg/ton/api/adnl/AdnlAddressUdp;Lio/ktor/utils/io/core/ByteReadPacket;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; |
| 110 | +} |
| 111 | + |
| 112 | +public final class org/ton/adnl/engine/CIOAdnlNetworkEngine : org/ton/adnl/engine/AdnlNetworkEngine { |
| 113 | + public static final field Companion Lorg/ton/adnl/engine/CIOAdnlNetworkEngine$Companion; |
| 114 | + public fun <init> ()V |
| 115 | + public fun <init> (I)V |
| 116 | + public fun <init> (Lorg/ton/api/adnl/AdnlAddressUdp;)V |
| 117 | + public synthetic fun <init> (Lorg/ton/api/adnl/AdnlAddressUdp;ILkotlin/jvm/internal/DefaultConstructorMarker;)V |
| 118 | + public final fun getSocket ()Lio/ktor/network/sockets/BoundDatagramSocket; |
| 119 | + public fun receiveDatagram (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; |
| 120 | + public fun sendDatagram (Lorg/ton/api/adnl/AdnlAddressUdp;Lio/ktor/utils/io/core/ByteReadPacket;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; |
| 121 | +} |
| 122 | + |
| 123 | +public final class org/ton/adnl/engine/CIOAdnlNetworkEngine$Companion { |
| 124 | +} |
| 125 | + |
| 126 | +public final class org/ton/adnl/exception/AdnlOldPacketSeqnoException : java/lang/RuntimeException { |
| 127 | + public fun <init> (JJ)V |
| 128 | + public final fun getLocalSeqno ()J |
| 129 | + public final fun getPacketSeqno ()J |
| 130 | +} |
| 131 | + |
| 132 | +public final class org/ton/adnl/exception/AdnlOldPeerReinitDateException : java/lang/RuntimeException { |
| 133 | + public fun <init> (Lkotlinx/datetime/Instant;)V |
| 134 | + public final fun getReinitDate ()Lkotlinx/datetime/Instant; |
| 135 | +} |
| 136 | + |
| 137 | +public final class org/ton/adnl/exception/AdnlTooNewAckSeqnoException : java/lang/RuntimeException { |
| 138 | + public fun <init> (JJ)V |
| 139 | + public final fun getAckSeqno ()J |
| 140 | + public final fun getLocalSeqno ()J |
| 141 | +} |
| 142 | + |
| 143 | +public final class org/ton/adnl/exception/AdnlTooNewAddressListReinitDateException : java/lang/RuntimeException { |
| 144 | + public fun <init> (Lkotlinx/datetime/Instant;Lorg/ton/api/adnl/AdnlAddressList;)V |
| 145 | + public final fun getAddressList ()Lorg/ton/api/adnl/AdnlAddressList; |
| 146 | + public final fun getReinitDate ()Lkotlinx/datetime/Instant; |
| 147 | +} |
| 148 | + |
| 149 | +public final class org/ton/adnl/exception/AdnlTooNewLocalReinitDateException : java/lang/RuntimeException { |
| 150 | + public fun <init> (Lkotlinx/datetime/Instant;)V |
| 151 | + public final fun getReinitDate ()Lkotlinx/datetime/Instant; |
| 152 | +} |
| 153 | + |
| 154 | +public final class org/ton/adnl/exception/AdnlTooNewRemoteReinitDateException : java/lang/RuntimeException { |
| 155 | + public fun <init> (Lkotlinx/datetime/Instant;)V |
| 156 | + public final fun getReinitDate ()Lkotlinx/datetime/Instant; |
| 157 | +} |
| 158 | + |
| 159 | +public final class org/ton/adnl/exception/UnknownAdnlDestinationException : java/lang/RuntimeException { |
| 160 | + public fun <init> (Lorg/ton/api/adnl/AdnlIdShort;)V |
| 161 | + public final fun getDestination ()Lorg/ton/api/adnl/AdnlIdShort; |
| 162 | +} |
| 163 | + |
| 164 | +public abstract interface class org/ton/adnl/network/IPAddress { |
| 165 | + public static final field Companion Lorg/ton/adnl/network/IPAddress$Companion; |
| 166 | + public abstract fun getHost ()Ljava/lang/String; |
| 167 | + public abstract fun getPort ()I |
| 168 | + public static fun ipv4 (II)Lorg/ton/adnl/network/IPAddress; |
| 169 | + public static fun ipv4 (Ljava/lang/String;I)Lorg/ton/adnl/network/IPAddress; |
| 170 | + public static fun ipv6 ([BI)Lorg/ton/adnl/network/IPAddress; |
| 171 | + public abstract fun toAdnlAddress ()Lorg/ton/api/adnl/AdnlAddress; |
| 172 | +} |
| 173 | + |
| 174 | +public final class org/ton/adnl/network/IPAddress$Companion { |
| 175 | + public final fun ipv4 (II)Lorg/ton/adnl/network/IPAddress; |
| 176 | + public final fun ipv4 (Ljava/lang/String;I)Lorg/ton/adnl/network/IPAddress; |
| 177 | + public final fun ipv6 ([BI)Lorg/ton/adnl/network/IPAddress; |
| 178 | +} |
| 179 | + |
| 180 | +public final class org/ton/adnl/network/IPv4Address : org/ton/adnl/network/IPAddress { |
| 181 | + public fun <init> (II)V |
| 182 | + public fun <init> (Ljava/lang/String;I)V |
| 183 | + public final fun component1 ()I |
| 184 | + public final fun component2 ()I |
| 185 | + public final fun copy (II)Lorg/ton/adnl/network/IPv4Address; |
| 186 | + public static synthetic fun copy$default (Lorg/ton/adnl/network/IPv4Address;IIILjava/lang/Object;)Lorg/ton/adnl/network/IPv4Address; |
| 187 | + public fun equals (Ljava/lang/Object;)Z |
| 188 | + public final fun getAddress ()I |
| 189 | + public fun getHost ()Ljava/lang/String; |
| 190 | + public fun getPort ()I |
| 191 | + public fun hashCode ()I |
| 192 | + public synthetic fun toAdnlAddress ()Lorg/ton/api/adnl/AdnlAddress; |
| 193 | + public fun toAdnlAddress ()Lorg/ton/api/adnl/AdnlAddressUdp; |
| 194 | + public fun toString ()Ljava/lang/String; |
| 195 | +} |
| 196 | + |
| 197 | +public final class org/ton/adnl/network/IPv6Address : org/ton/adnl/network/IPAddress { |
| 198 | + public fun <init> ([BI)V |
| 199 | + public final fun component1 ()[B |
| 200 | + public final fun component2 ()I |
| 201 | + public final fun copy ([BI)Lorg/ton/adnl/network/IPv6Address; |
| 202 | + public static synthetic fun copy$default (Lorg/ton/adnl/network/IPv6Address;[BIILjava/lang/Object;)Lorg/ton/adnl/network/IPv6Address; |
| 203 | + public fun equals (Ljava/lang/Object;)Z |
| 204 | + public final fun getAddress ()[B |
| 205 | + public fun getHost ()Ljava/lang/String; |
| 206 | + public fun getPort ()I |
| 207 | + public fun hashCode ()I |
| 208 | + public synthetic fun toAdnlAddress ()Lorg/ton/api/adnl/AdnlAddress; |
| 209 | + public fun toAdnlAddress ()Lorg/ton/api/adnl/AdnlAddressUdp6; |
| 210 | + public fun toString ()Ljava/lang/String; |
| 211 | +} |
| 212 | + |
| 213 | +public abstract interface class org/ton/adnl/network/TcpClient : java/io/Closeable, kotlinx/coroutines/DisposableHandle { |
| 214 | + public abstract fun close (Ljava/lang/Throwable;)V |
| 215 | + public abstract fun connect (Ljava/lang/String;ILkotlin/coroutines/Continuation;)Ljava/lang/Object; |
| 216 | + public fun dispose ()V |
| 217 | + public abstract fun getInput ()Lio/ktor/utils/io/ByteReadChannel; |
| 218 | + public abstract fun getOutput ()Lio/ktor/utils/io/ByteWriteChannel; |
| 219 | +} |
| 220 | + |
| 221 | +public final class org/ton/adnl/network/TcpClientImpl : org/ton/adnl/network/TcpClient { |
| 222 | + public static final field Companion Lorg/ton/adnl/network/TcpClientImpl$Companion; |
| 223 | + public fun <init> ()V |
| 224 | + public fun close ()V |
| 225 | + public fun close (Ljava/lang/Throwable;)V |
| 226 | + public fun connect (Ljava/lang/String;ILkotlin/coroutines/Continuation;)Ljava/lang/Object; |
| 227 | + public fun getInput ()Lio/ktor/utils/io/ByteReadChannel; |
| 228 | + public fun getOutput ()Lio/ktor/utils/io/ByteWriteChannel; |
| 229 | +} |
| 230 | + |
| 231 | +public final class org/ton/adnl/network/TcpClientImpl$Companion { |
| 232 | +} |
| 233 | + |
| 234 | +public abstract interface class org/ton/adnl/network/UdpServer : kotlinx/coroutines/CoroutineScope { |
| 235 | + public static final field Companion Lorg/ton/adnl/network/UdpServer$Companion; |
| 236 | + public abstract fun send (Lorg/ton/adnl/network/IPAddress;Lio/ktor/utils/io/core/ByteReadPacket;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; |
| 237 | +} |
| 238 | + |
| 239 | +public abstract interface class org/ton/adnl/network/UdpServer$Callback { |
| 240 | + public abstract fun receive (Lorg/ton/adnl/network/IPAddress;Lio/ktor/utils/io/core/ByteReadPacket;)V |
| 241 | +} |
| 242 | + |
| 243 | +public final class org/ton/adnl/network/UdpServer$Companion { |
| 244 | + public final fun create (Lkotlin/coroutines/CoroutineContext;ILorg/ton/adnl/network/UdpServer$Callback;)Lorg/ton/adnl/network/UdpServer; |
| 245 | +} |
| 246 | + |
| 247 | +public final class org/ton/adnl/peer/AdnlMessagePartDecoder { |
| 248 | + public fun <init> ()V |
| 249 | + public fun <init> (I)V |
| 250 | + public synthetic fun <init> (IILkotlin/jvm/internal/DefaultConstructorMarker;)V |
| 251 | + public final fun decode (Lorg/ton/api/adnl/message/AdnlMessagePart;)Lorg/ton/api/adnl/message/AdnlMessage; |
| 252 | +} |
| 253 | + |
| 254 | +public final class org/ton/adnl/peer/AdnlMessagePartEncoder { |
| 255 | + public fun <init> (II)V |
| 256 | + public synthetic fun <init> (IIILkotlin/jvm/internal/DefaultConstructorMarker;)V |
| 257 | + public final fun encode (Lorg/ton/api/adnl/message/AdnlMessage;)Ljava/util/List; |
| 258 | + public final fun getMaxSize ()I |
| 259 | + public final fun getMtu ()I |
| 260 | +} |
| 261 | + |
| 262 | +public abstract interface class org/ton/adnl/resolver/AdnlAddressResolver { |
| 263 | + public abstract fun resolve (Lorg/ton/api/adnl/AdnlIdShort;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; |
| 264 | + public fun resolve (Lorg/ton/api/pub/PublicKey;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; |
| 265 | + public static synthetic fun resolve$suspendImpl (Lorg/ton/adnl/resolver/AdnlAddressResolver;Lorg/ton/api/pub/PublicKey;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; |
| 266 | +} |
| 267 | + |
| 268 | +public final class org/ton/adnl/resolver/MapAdnlAddressResolver : org/ton/adnl/resolver/AdnlAddressResolver { |
| 269 | + public fun <init> (Ljava/util/Map;)V |
| 270 | + public fun resolve (Lorg/ton/api/adnl/AdnlIdShort;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; |
| 271 | +} |
| 272 | + |
| 273 | +public final class org/ton/adnl/utils/IpKt { |
| 274 | + public static final fun toAdnlUdpAddress (Lio/ktor/network/sockets/InetSocketAddress;)Lorg/ton/api/adnl/AdnlAddressUdp; |
| 275 | + public static final fun toAdnlUdpAddress (Lio/ktor/network/sockets/SocketAddress;)Lorg/ton/api/adnl/AdnlAddressUdp; |
| 276 | + public static final fun toSocketAddress (Lorg/ton/api/adnl/AdnlAddressUdp;)Lio/ktor/network/sockets/InetSocketAddress; |
| 277 | +} |
| 278 | + |
0 commit comments