@xiuper/mpp-core 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Kotlin-DateTime-library-kotlinx-datetime.js +7836 -0
- package/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -0
- package/Kotlin-Immutable-Collections-kotlinx-collections-immutable.js +1241 -0
- package/Kotlin-Immutable-Collections-kotlinx-collections-immutable.js.map +1 -0
- package/Xiuper-mpp-codegraph.js +1471 -0
- package/Xiuper-mpp-codegraph.js.map +1 -0
- package/annotations.js +15 -0
- package/annotations.js.map +1 -0
- package/autodev-mpp-core.d.ts +1312 -0
- package/autodev-mpp-core.js +86483 -0
- package/autodev-mpp-core.js.map +1 -0
- package/kaml.js +3387 -0
- package/kaml.js.map +1 -0
- package/koog-agents-agents-core.js +22927 -0
- package/koog-agents-agents-core.js.map +1 -0
- package/koog-agents-agents-ext.js +15 -0
- package/koog-agents-agents-ext.js.map +1 -0
- package/koog-agents-agents-features-agents-features-event-handler.js +15 -0
- package/koog-agents-agents-features-agents-features-event-handler.js.map +1 -0
- package/koog-agents-agents-features-agents-features-memory.js +15 -0
- package/koog-agents-agents-features-agents-features-memory.js.map +1 -0
- package/koog-agents-agents-features-agents-features-opentelemetry.js +15 -0
- package/koog-agents-agents-features-agents-features-opentelemetry.js.map +1 -0
- package/koog-agents-agents-features-agents-features-snapshot.js +15 -0
- package/koog-agents-agents-features-agents-features-snapshot.js.map +1 -0
- package/koog-agents-agents-features-agents-features-tokenizer.js +15 -0
- package/koog-agents-agents-features-agents-features-tokenizer.js.map +1 -0
- package/koog-agents-agents-features-agents-features-trace.js +15 -0
- package/koog-agents-agents-features-agents-features-trace.js.map +1 -0
- package/koog-agents-agents-mcp.js +15 -0
- package/koog-agents-agents-mcp.js.map +1 -0
- package/koog-agents-agents-tools.js +322 -0
- package/koog-agents-agents-tools.js.map +1 -0
- package/koog-agents-agents-utils.js +232 -0
- package/koog-agents-agents-utils.js.map +1 -0
- package/koog-embeddings-embeddings-base.js +15 -0
- package/koog-embeddings-embeddings-base.js.map +1 -0
- package/koog-embeddings-embeddings-llm.js +15 -0
- package/koog-embeddings-embeddings-llm.js.map +1 -0
- package/koog-http-client-http-client-core.js +57 -0
- package/koog-http-client-http-client-core.js.map +1 -0
- package/koog-http-client-http-client-ktor.js +703 -0
- package/koog-http-client-http-client-ktor.js.map +1 -0
- package/koog-koog-agents.js +15 -0
- package/koog-koog-agents.js.map +1 -0
- package/koog-prompt-prompt-cache-prompt-cache-files.js +15 -0
- package/koog-prompt-prompt-cache-prompt-cache-files.js.map +1 -0
- package/koog-prompt-prompt-cache-prompt-cache-model.js +15 -0
- package/koog-prompt-prompt-cache-prompt-cache-model.js.map +1 -0
- package/koog-prompt-prompt-cache-prompt-cache-redis.js +15 -0
- package/koog-prompt-prompt-cache-prompt-cache-redis.js.map +1 -0
- package/koog-prompt-prompt-executor-prompt-executor-cached.js +15 -0
- package/koog-prompt-prompt-executor-prompt-executor-cached.js.map +1 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-anthropic-client.js +4991 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-anthropic-client.js.map +1 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-bedrock-client.js +15 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-bedrock-client.js.map +1 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-dashscope-client.js +15 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-dashscope-client.js.map +1 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-deepseek-client.js +1249 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-deepseek-client.js.map +1 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-google-client.js +4675 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-google-client.js.map +1 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-mistralai-client.js +15 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-mistralai-client.js.map +1 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-ollama-client.js +2343 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-ollama-client.js.map +1 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openai-client-base.js +6613 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openai-client-base.js.map +1 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openai-client.js +19901 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openai-client.js.map +1 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openrouter-client.js +2313 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openrouter-client.js.map +1 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients.js +222 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients.js.map +1 -0
- package/koog-prompt-prompt-executor-prompt-executor-llms-all.js +70 -0
- package/koog-prompt-prompt-executor-prompt-executor-llms-all.js.map +1 -0
- package/koog-prompt-prompt-executor-prompt-executor-llms.js +134 -0
- package/koog-prompt-prompt-executor-prompt-executor-llms.js.map +1 -0
- package/koog-prompt-prompt-executor-prompt-executor-model.js +42 -0
- package/koog-prompt-prompt-executor-prompt-executor-model.js.map +1 -0
- package/koog-prompt-prompt-llm.js +1710 -0
- package/koog-prompt-prompt-llm.js.map +1 -0
- package/koog-prompt-prompt-markdown.js +122 -0
- package/koog-prompt-prompt-markdown.js.map +1 -0
- package/koog-prompt-prompt-model.js +5848 -0
- package/koog-prompt-prompt-model.js.map +1 -0
- package/koog-prompt-prompt-structure.js +1513 -0
- package/koog-prompt-prompt-structure.js.map +1 -0
- package/koog-prompt-prompt-tokenizer.js +15 -0
- package/koog-prompt-prompt-tokenizer.js.map +1 -0
- package/koog-prompt-prompt-xml.js +15 -0
- package/koog-prompt-prompt-xml.js.map +1 -0
- package/koog-rag-rag-base.js +15 -0
- package/koog-rag-rag-base.js.map +1 -0
- package/koog-rag-vector-storage.js +15 -0
- package/koog-rag-vector-storage.js.map +1 -0
- package/koog-utils.js +63 -0
- package/koog-utils.js.map +1 -0
- package/kotlin-kotlin-stdlib.js +18965 -0
- package/kotlin-kotlin-stdlib.js.map +1 -0
- package/kotlin-logging.js +509 -0
- package/kotlin-logging.js.map +1 -0
- package/kotlin-sdk-kotlin-sdk-client.js +1340 -0
- package/kotlin-sdk-kotlin-sdk-client.js.map +1 -0
- package/kotlin-sdk-kotlin-sdk-core.js +15195 -0
- package/kotlin-sdk-kotlin-sdk-core.js.map +1 -0
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +15 -0
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map +1 -0
- package/kotlinx-atomicfu.js +259 -0
- package/kotlinx-atomicfu.js.map +1 -0
- package/kotlinx-coroutines-core.js +13742 -0
- package/kotlinx-coroutines-core.js.map +1 -0
- package/kotlinx-io-kotlinx-io-bytestring.js +214 -0
- package/kotlinx-io-kotlinx-io-bytestring.js.map +1 -0
- package/kotlinx-io-kotlinx-io-core.js +2892 -0
- package/kotlinx-io-kotlinx-io-core.js.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core.js +6563 -0
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-json-io.js +15 -0
- package/kotlinx-serialization-kotlinx-serialization-json-io.js.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-json.js +5927 -0
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -0
- package/ktor-ktor-client-content-negotiation.js +775 -0
- package/ktor-ktor-client-content-negotiation.js.map +1 -0
- package/ktor-ktor-client-core.js +11110 -0
- package/ktor-ktor-client-core.js.map +1 -0
- package/ktor-ktor-client-logging.js +15 -0
- package/ktor-ktor-client-logging.js.map +1 -0
- package/ktor-ktor-events.js +126 -0
- package/ktor-ktor-events.js.map +1 -0
- package/ktor-ktor-http-cio.js +4257 -0
- package/ktor-ktor-http-cio.js.map +1 -0
- package/ktor-ktor-http.js +3671 -0
- package/ktor-ktor-http.js.map +1 -0
- package/ktor-ktor-io.js +4114 -0
- package/ktor-ktor-io.js.map +1 -0
- package/ktor-ktor-network.js +1399 -0
- package/ktor-ktor-network.js.map +1 -0
- package/ktor-ktor-serialization-kotlinx-json.js +67 -0
- package/ktor-ktor-serialization-kotlinx-json.js.map +1 -0
- package/ktor-ktor-serialization-kotlinx.js +881 -0
- package/ktor-ktor-serialization-kotlinx.js.map +1 -0
- package/ktor-ktor-serialization.js +388 -0
- package/ktor-ktor-serialization.js.map +1 -0
- package/ktor-ktor-server-cio.js +3735 -0
- package/ktor-ktor-server-cio.js.map +1 -0
- package/ktor-ktor-server-core.js +8696 -0
- package/ktor-ktor-server-core.js.map +1 -0
- package/ktor-ktor-server-sse.js +668 -0
- package/ktor-ktor-server-sse.js.map +1 -0
- package/ktor-ktor-server-websockets.js +15 -0
- package/ktor-ktor-server-websockets.js.map +1 -0
- package/ktor-ktor-sse.js +161 -0
- package/ktor-ktor-sse.js.map +1 -0
- package/ktor-ktor-utils.js +3589 -0
- package/ktor-ktor-utils.js.map +1 -0
- package/ktor-ktor-websocket-serialization.js +15 -0
- package/ktor-ktor-websocket-serialization.js.map +1 -0
- package/ktor-ktor-websockets.js +450 -0
- package/ktor-ktor-websockets.js.map +1 -0
- package/markdown.js +5174 -0
- package/markdown.js.map +1 -0
- package/okio-parent-okio.js +2628 -0
- package/okio-parent-okio.js.map +1 -0
- package/package.json +18 -0
- package/snakeyaml-engine-kmp.js +7079 -0
- package/snakeyaml-engine-kmp.js.map +1 -0
- package/urlencoder-urlencoder-lib.js +322 -0
- package/urlencoder-urlencoder-lib.js.map +1 -0
- package/xiuper-mpp-core.d.ts +1312 -0
- package/xiuper-mpp-core.js +86483 -0
- package/xiuper-mpp-core.js.map +1 -0
|
@@ -0,0 +1,1399 @@
|
|
|
1
|
+
(function (factory) {
|
|
2
|
+
if (typeof define === 'function' && define.amd)
|
|
3
|
+
define(['exports', './kotlin-kotlin-stdlib.js', './ktor-ktor-io.js', './kotlinx-coroutines-core.js', './kotlinx-atomicfu.js', './kotlinx-io-kotlinx-io-core.js'], factory);
|
|
4
|
+
else if (typeof exports === 'object')
|
|
5
|
+
factory(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./ktor-ktor-io.js'), require('./kotlinx-coroutines-core.js'), require('./kotlinx-atomicfu.js'), require('./kotlinx-io-kotlinx-io-core.js'));
|
|
6
|
+
else {
|
|
7
|
+
if (typeof globalThis['kotlin-kotlin-stdlib'] === 'undefined') {
|
|
8
|
+
throw new Error("Error loading module 'ktor-ktor-network'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'ktor-ktor-network'.");
|
|
9
|
+
}
|
|
10
|
+
if (typeof globalThis['ktor-ktor-io'] === 'undefined') {
|
|
11
|
+
throw new Error("Error loading module 'ktor-ktor-network'. Its dependency 'ktor-ktor-io' was not found. Please, check whether 'ktor-ktor-io' is loaded prior to 'ktor-ktor-network'.");
|
|
12
|
+
}
|
|
13
|
+
if (typeof globalThis['kotlinx-coroutines-core'] === 'undefined') {
|
|
14
|
+
throw new Error("Error loading module 'ktor-ktor-network'. Its dependency 'kotlinx-coroutines-core' was not found. Please, check whether 'kotlinx-coroutines-core' is loaded prior to 'ktor-ktor-network'.");
|
|
15
|
+
}
|
|
16
|
+
if (typeof globalThis['kotlinx-atomicfu'] === 'undefined') {
|
|
17
|
+
throw new Error("Error loading module 'ktor-ktor-network'. Its dependency 'kotlinx-atomicfu' was not found. Please, check whether 'kotlinx-atomicfu' is loaded prior to 'ktor-ktor-network'.");
|
|
18
|
+
}
|
|
19
|
+
if (typeof globalThis['kotlinx-io-kotlinx-io-core'] === 'undefined') {
|
|
20
|
+
throw new Error("Error loading module 'ktor-ktor-network'. Its dependency 'kotlinx-io-kotlinx-io-core' was not found. Please, check whether 'kotlinx-io-kotlinx-io-core' is loaded prior to 'ktor-ktor-network'.");
|
|
21
|
+
}
|
|
22
|
+
globalThis['ktor-ktor-network'] = factory(typeof globalThis['ktor-ktor-network'] === 'undefined' ? {} : globalThis['ktor-ktor-network'], globalThis['kotlin-kotlin-stdlib'], globalThis['ktor-ktor-io'], globalThis['kotlinx-coroutines-core'], globalThis['kotlinx-atomicfu'], globalThis['kotlinx-io-kotlinx-io-core']);
|
|
23
|
+
}
|
|
24
|
+
}(function (_, kotlin_kotlin, kotlin_io_ktor_ktor_io, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core, kotlin_org_jetbrains_kotlinx_atomicfu, kotlin_org_jetbrains_kotlinx_kotlinx_io_core) {
|
|
25
|
+
'use strict';
|
|
26
|
+
//region block: imports
|
|
27
|
+
var imul = Math.imul;
|
|
28
|
+
var protoOf = kotlin_kotlin.$_$.we;
|
|
29
|
+
var initMetadataForClass = kotlin_kotlin.$_$.ud;
|
|
30
|
+
var get_isCompleted = kotlin_io_ktor_ktor_io.$_$.m2;
|
|
31
|
+
var Unit_instance = kotlin_kotlin.$_$.h6;
|
|
32
|
+
var get_isCancelled = kotlin_io_ktor_ktor_io.$_$.l2;
|
|
33
|
+
var getCancellationException = kotlin_io_ktor_ktor_io.$_$.i2;
|
|
34
|
+
var addSuppressed = kotlin_kotlin.$_$.ml;
|
|
35
|
+
var CoroutineImpl = kotlin_kotlin.$_$.tc;
|
|
36
|
+
var THROW_CCE = kotlin_kotlin.$_$.zk;
|
|
37
|
+
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.c2;
|
|
38
|
+
var isInterface = kotlin_kotlin.$_$.je;
|
|
39
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.dc;
|
|
40
|
+
var cancel = kotlin_io_ktor_ktor_io.$_$.d2;
|
|
41
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.zd;
|
|
42
|
+
var VOID = kotlin_kotlin.$_$.h;
|
|
43
|
+
var atomic$boolean$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.b;
|
|
44
|
+
var atomic$ref$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.d;
|
|
45
|
+
var Key_instance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.x;
|
|
46
|
+
var Job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.d2;
|
|
47
|
+
var CoroutineName = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.a2;
|
|
48
|
+
var launch = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.q2;
|
|
49
|
+
var IOException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.c;
|
|
50
|
+
var close = kotlin_io_ktor_ktor_io.$_$.g2;
|
|
51
|
+
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.j2;
|
|
52
|
+
var attachJob = kotlin_io_ktor_ktor_io.$_$.c2;
|
|
53
|
+
var invokeOnCompletion = kotlin_io_ktor_ktor_io.$_$.j2;
|
|
54
|
+
var HashMap_init_$Create$ = kotlin_kotlin.$_$.w;
|
|
55
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.vd;
|
|
56
|
+
var HashMap_init_$Create$_0 = kotlin_kotlin.$_$.x;
|
|
57
|
+
var ByteChannel = kotlin_io_ktor_ktor_io.$_$.t1;
|
|
58
|
+
var AutoCloseable = kotlin_kotlin.$_$.fk;
|
|
59
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.yd;
|
|
60
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.wd;
|
|
61
|
+
var _UByte___init__impl__g9hnc4 = kotlin_kotlin.$_$.x3;
|
|
62
|
+
var EmptyCoroutineContext_getInstance = kotlin_kotlin.$_$.i5;
|
|
63
|
+
var initMetadataForObject = kotlin_kotlin.$_$.ae;
|
|
64
|
+
var get_job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.p2;
|
|
65
|
+
var cancel_0 = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.m2;
|
|
66
|
+
var Companion_instance = kotlin_kotlin.$_$.c6;
|
|
67
|
+
var createFailure = kotlin_kotlin.$_$.rl;
|
|
68
|
+
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.s3;
|
|
69
|
+
var IOException_init_$Create$_0 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.e;
|
|
70
|
+
var ensureNotNull = kotlin_kotlin.$_$.sl;
|
|
71
|
+
var Channel = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.z;
|
|
72
|
+
var SupervisorJob = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.f2;
|
|
73
|
+
var WriterScope = kotlin_io_ktor_ktor_io.$_$.b2;
|
|
74
|
+
var writeByteArray = kotlin_io_ktor_ktor_io.$_$.n;
|
|
75
|
+
var cancelConsumed = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.c1;
|
|
76
|
+
var ReaderScope = kotlin_io_ktor_ktor_io.$_$.a2;
|
|
77
|
+
var UnsafeBufferOperations_instance = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.f;
|
|
78
|
+
var toString = kotlin_kotlin.$_$.af;
|
|
79
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.e2;
|
|
80
|
+
var toLong = kotlin_kotlin.$_$.ye;
|
|
81
|
+
var CompletableDeferred = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.x1;
|
|
82
|
+
var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.v;
|
|
83
|
+
var writer = kotlin_io_ktor_ktor_io.$_$.r2;
|
|
84
|
+
var reader = kotlin_io_ktor_ktor_io.$_$.p2;
|
|
85
|
+
var intercepted = kotlin_kotlin.$_$.gc;
|
|
86
|
+
var CancellableContinuationImpl = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.u1;
|
|
87
|
+
var KProperty0 = kotlin_kotlin.$_$.sf;
|
|
88
|
+
var getPropertyCallableRef = kotlin_kotlin.$_$.rd;
|
|
89
|
+
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.w3;
|
|
90
|
+
var _Result___get_isFailure__impl__jpiriv = kotlin_kotlin.$_$.u3;
|
|
91
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.zl;
|
|
92
|
+
var lazy = kotlin_kotlin.$_$.yl;
|
|
93
|
+
var getStringHashCode = kotlin_kotlin.$_$.sd;
|
|
94
|
+
var objectCreate = kotlin_kotlin.$_$.ve;
|
|
95
|
+
var captureStack = kotlin_kotlin.$_$.dd;
|
|
96
|
+
var IOException = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.k;
|
|
97
|
+
var IOException_init_$Init$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.d;
|
|
98
|
+
//endregion
|
|
99
|
+
//region block: pre-declaration
|
|
100
|
+
initMetadataForClass(SocketBuilder, 'SocketBuilder');
|
|
101
|
+
initMetadataForLambda(SocketBase$close$slambda, CoroutineImpl, VOID, [1]);
|
|
102
|
+
function dispose() {
|
|
103
|
+
try {
|
|
104
|
+
this.u4();
|
|
105
|
+
} catch ($p) {
|
|
106
|
+
if ($p instanceof Error) {
|
|
107
|
+
var ignore = $p;
|
|
108
|
+
} else {
|
|
109
|
+
throw $p;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
initMetadataForInterface(ASocket, 'ASocket', VOID, VOID, [AutoCloseable]);
|
|
114
|
+
initMetadataForClass(SelectableBase, 'SelectableBase');
|
|
115
|
+
initMetadataForClass(SocketBase, 'SocketBase', VOID, SelectableBase, [ASocket, SelectableBase, CoroutineScope]);
|
|
116
|
+
initMetadataForClass(SocketOptions, 'SocketOptions');
|
|
117
|
+
initMetadataForClass(GeneralSocketOptions, 'GeneralSocketOptions', VOID, SocketOptions);
|
|
118
|
+
initMetadataForClass(AcceptorOptions, 'AcceptorOptions', VOID, SocketOptions);
|
|
119
|
+
initMetadataForClass(PeerSocketOptions, 'PeerSocketOptions', VOID, SocketOptions);
|
|
120
|
+
initMetadataForCompanion(Companion);
|
|
121
|
+
initMetadataForCoroutine($awaitClosedCOROUTINE$, CoroutineImpl);
|
|
122
|
+
initMetadataForClass(TcpSocketBuilder, 'TcpSocketBuilder', VOID, VOID, VOID, [3, 2]);
|
|
123
|
+
initMetadataForCompanion(Companion_0);
|
|
124
|
+
initMetadataForObject(NoopSelectorManager, 'NoopSelectorManager', VOID, VOID, [CoroutineScope, AutoCloseable], [2]);
|
|
125
|
+
initMetadataForClass(ServerSocketContext, 'ServerSocketContext');
|
|
126
|
+
initMetadataForClass(ServerSocketImpl, 'ServerSocketImpl', VOID, VOID, [ASocket], [0]);
|
|
127
|
+
initMetadataForClass(SocketContext, 'SocketContext');
|
|
128
|
+
initMetadataForLambda(SocketImpl$attachForReadingImpl$slambda, CoroutineImpl, VOID, [1]);
|
|
129
|
+
initMetadataForLambda(SocketImpl$attachForWritingImpl$slambda, CoroutineImpl, VOID, [1]);
|
|
130
|
+
initMetadataForClass(SocketImpl, 'SocketImpl', VOID, SocketBase, [SocketBase, ASocket, CoroutineScope]);
|
|
131
|
+
initMetadataForClass(SocketAddress, 'SocketAddress');
|
|
132
|
+
initMetadataForCompanion(Companion_1);
|
|
133
|
+
initMetadataForClass(UnixSocketAddress, 'UnixSocketAddress', VOID, SocketAddress);
|
|
134
|
+
initMetadataForClass(InetSocketAddress, 'InetSocketAddress', VOID, SocketAddress);
|
|
135
|
+
initMetadataForClass(SocketTimeoutException, 'SocketTimeoutException', VOID, IOException);
|
|
136
|
+
//endregion
|
|
137
|
+
function SocketBuilder(selector, options) {
|
|
138
|
+
this.ybh_1 = selector;
|
|
139
|
+
this.zbh_1 = options;
|
|
140
|
+
}
|
|
141
|
+
protoOf(SocketBuilder).abi = function () {
|
|
142
|
+
return new TcpSocketBuilder(this.ybh_1, this.zbh_1.fbi());
|
|
143
|
+
};
|
|
144
|
+
function aSocket(selector) {
|
|
145
|
+
return new SocketBuilder(selector, Companion_instance_0.gbi());
|
|
146
|
+
}
|
|
147
|
+
function checkChannels($this) {
|
|
148
|
+
var tmp;
|
|
149
|
+
var tmp_0;
|
|
150
|
+
if ($this.hbi_1.kotlinx$atomicfu$value) {
|
|
151
|
+
// Inline function 'io.ktor.network.sockets.SocketBase.completedOrNotStarted' call
|
|
152
|
+
// Inline function 'kotlin.let' call
|
|
153
|
+
var it = $this.jbi_1.kotlinx$atomicfu$value;
|
|
154
|
+
tmp_0 = it == null || get_isCompleted(it);
|
|
155
|
+
} else {
|
|
156
|
+
tmp_0 = false;
|
|
157
|
+
}
|
|
158
|
+
if (tmp_0) {
|
|
159
|
+
// Inline function 'io.ktor.network.sockets.SocketBase.completedOrNotStarted' call
|
|
160
|
+
// Inline function 'kotlin.let' call
|
|
161
|
+
var it_0 = $this.kbi_1.kotlinx$atomicfu$value;
|
|
162
|
+
tmp = it_0 == null || get_isCompleted(it_0);
|
|
163
|
+
} else {
|
|
164
|
+
tmp = false;
|
|
165
|
+
}
|
|
166
|
+
if (tmp) {
|
|
167
|
+
if (!$this.ibi_1.atomicfu$compareAndSet(false, true))
|
|
168
|
+
return Unit_instance;
|
|
169
|
+
// Inline function 'io.ktor.network.sockets.SocketBase.exception' call
|
|
170
|
+
var tmp0_safe_receiver = $this.jbi_1.kotlinx$atomicfu$value;
|
|
171
|
+
var tmp_1;
|
|
172
|
+
if (tmp0_safe_receiver == null) {
|
|
173
|
+
tmp_1 = null;
|
|
174
|
+
} else {
|
|
175
|
+
// Inline function 'kotlin.takeIf' call
|
|
176
|
+
var tmp_2;
|
|
177
|
+
if (get_isCancelled(tmp0_safe_receiver)) {
|
|
178
|
+
tmp_2 = tmp0_safe_receiver;
|
|
179
|
+
} else {
|
|
180
|
+
tmp_2 = null;
|
|
181
|
+
}
|
|
182
|
+
tmp_1 = tmp_2;
|
|
183
|
+
}
|
|
184
|
+
var tmp1_safe_receiver = tmp_1;
|
|
185
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : getCancellationException(tmp1_safe_receiver);
|
|
186
|
+
var e1 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.cause;
|
|
187
|
+
// Inline function 'io.ktor.network.sockets.SocketBase.exception' call
|
|
188
|
+
var tmp0_safe_receiver_0 = $this.kbi_1.kotlinx$atomicfu$value;
|
|
189
|
+
var tmp_3;
|
|
190
|
+
if (tmp0_safe_receiver_0 == null) {
|
|
191
|
+
tmp_3 = null;
|
|
192
|
+
} else {
|
|
193
|
+
// Inline function 'kotlin.takeIf' call
|
|
194
|
+
var tmp_4;
|
|
195
|
+
if (get_isCancelled(tmp0_safe_receiver_0)) {
|
|
196
|
+
tmp_4 = tmp0_safe_receiver_0;
|
|
197
|
+
} else {
|
|
198
|
+
tmp_4 = null;
|
|
199
|
+
}
|
|
200
|
+
tmp_3 = tmp_4;
|
|
201
|
+
}
|
|
202
|
+
var tmp1_safe_receiver_0 = tmp_3;
|
|
203
|
+
var tmp2_safe_receiver_0 = tmp1_safe_receiver_0 == null ? null : getCancellationException(tmp1_safe_receiver_0);
|
|
204
|
+
var e2 = tmp2_safe_receiver_0 == null ? null : tmp2_safe_receiver_0.cause;
|
|
205
|
+
var e3 = $this.nbi();
|
|
206
|
+
var combined = combine($this, combine($this, e1, e2), e3);
|
|
207
|
+
if (combined == null)
|
|
208
|
+
$this.obi().y24();
|
|
209
|
+
else
|
|
210
|
+
$this.obi().x24(combined);
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
function combine($this, e1, e2) {
|
|
214
|
+
var tmp;
|
|
215
|
+
if (e1 == null) {
|
|
216
|
+
tmp = e2;
|
|
217
|
+
} else if (e2 == null) {
|
|
218
|
+
tmp = e1;
|
|
219
|
+
} else if (e1 === e2) {
|
|
220
|
+
tmp = e1;
|
|
221
|
+
} else {
|
|
222
|
+
addSuppressed(e1, e2);
|
|
223
|
+
tmp = e1;
|
|
224
|
+
}
|
|
225
|
+
return tmp;
|
|
226
|
+
}
|
|
227
|
+
function SocketBase$channelCompletionHandler$lambda(this$0) {
|
|
228
|
+
return function (it) {
|
|
229
|
+
checkChannels(this$0);
|
|
230
|
+
return Unit_instance;
|
|
231
|
+
};
|
|
232
|
+
}
|
|
233
|
+
function SocketBase$close$slambda(this$0, resultContinuation) {
|
|
234
|
+
this.xbi_1 = this$0;
|
|
235
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
236
|
+
}
|
|
237
|
+
protoOf(SocketBase$close$slambda).x2q = function ($this$launch, $completion) {
|
|
238
|
+
var tmp = this.y2q($this$launch, $completion);
|
|
239
|
+
tmp.z9_1 = Unit_instance;
|
|
240
|
+
tmp.aa_1 = null;
|
|
241
|
+
return tmp.fa();
|
|
242
|
+
};
|
|
243
|
+
protoOf(SocketBase$close$slambda).ra = function (p1, $completion) {
|
|
244
|
+
return this.x2q((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
245
|
+
};
|
|
246
|
+
protoOf(SocketBase$close$slambda).fa = function () {
|
|
247
|
+
var suspendResult = this.z9_1;
|
|
248
|
+
$sm: do
|
|
249
|
+
try {
|
|
250
|
+
var tmp = this.x9_1;
|
|
251
|
+
switch (tmp) {
|
|
252
|
+
case 0:
|
|
253
|
+
this.y9_1 = 3;
|
|
254
|
+
this.zbi_1 = this.xbi_1.jbi_1.kotlinx$atomicfu$value;
|
|
255
|
+
if (this.zbi_1 == null) {
|
|
256
|
+
this.abj_1 = null;
|
|
257
|
+
this.x9_1 = 2;
|
|
258
|
+
continue $sm;
|
|
259
|
+
} else {
|
|
260
|
+
this.x9_1 = 1;
|
|
261
|
+
suspendResult = this.zbi_1.o4i(this);
|
|
262
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
263
|
+
return suspendResult;
|
|
264
|
+
}
|
|
265
|
+
continue $sm;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
case 1:
|
|
269
|
+
var tmp_0 = this;
|
|
270
|
+
tmp_0.abj_1 = Unit_instance;
|
|
271
|
+
this.x9_1 = 2;
|
|
272
|
+
continue $sm;
|
|
273
|
+
case 2:
|
|
274
|
+
var tmp1_safe_receiver = this.xbi_1.kbi_1.kotlinx$atomicfu$value;
|
|
275
|
+
if (tmp1_safe_receiver == null)
|
|
276
|
+
null;
|
|
277
|
+
else {
|
|
278
|
+
cancel(tmp1_safe_receiver);
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
checkChannels(this.xbi_1);
|
|
282
|
+
return Unit_instance;
|
|
283
|
+
case 3:
|
|
284
|
+
throw this.aa_1;
|
|
285
|
+
}
|
|
286
|
+
} catch ($p) {
|
|
287
|
+
var e = $p;
|
|
288
|
+
if (this.y9_1 === 3) {
|
|
289
|
+
throw e;
|
|
290
|
+
} else {
|
|
291
|
+
this.x9_1 = this.y9_1;
|
|
292
|
+
this.aa_1 = e;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
while (true);
|
|
296
|
+
};
|
|
297
|
+
protoOf(SocketBase$close$slambda).y2q = function ($this$launch, completion) {
|
|
298
|
+
var i = new SocketBase$close$slambda(this.xbi_1, completion);
|
|
299
|
+
i.ybi_1 = $this$launch;
|
|
300
|
+
return i;
|
|
301
|
+
};
|
|
302
|
+
function SocketBase$close$slambda_0(this$0, resultContinuation) {
|
|
303
|
+
var i = new SocketBase$close$slambda(this$0, resultContinuation);
|
|
304
|
+
var l = function ($this$launch, $completion) {
|
|
305
|
+
return i.x2q($this$launch, $completion);
|
|
306
|
+
};
|
|
307
|
+
l.$arity = 1;
|
|
308
|
+
return l;
|
|
309
|
+
}
|
|
310
|
+
function SocketBase(parent) {
|
|
311
|
+
SelectableBase.call(this);
|
|
312
|
+
this.hbi_1 = atomic$boolean$1(false);
|
|
313
|
+
this.ibi_1 = atomic$boolean$1(false);
|
|
314
|
+
this.jbi_1 = atomic$ref$1(null);
|
|
315
|
+
this.kbi_1 = atomic$ref$1(null);
|
|
316
|
+
var tmp = this;
|
|
317
|
+
tmp.lbi_1 = SocketBase$channelCompletionHandler$lambda(this);
|
|
318
|
+
this.mbi_1 = Job(parent.ka(Key_instance));
|
|
319
|
+
}
|
|
320
|
+
protoOf(SocketBase).obi = function () {
|
|
321
|
+
return this.mbi_1;
|
|
322
|
+
};
|
|
323
|
+
protoOf(SocketBase).z1v = function () {
|
|
324
|
+
return this.obi();
|
|
325
|
+
};
|
|
326
|
+
protoOf(SocketBase).y1y = function () {
|
|
327
|
+
this.u4();
|
|
328
|
+
};
|
|
329
|
+
protoOf(SocketBase).u4 = function () {
|
|
330
|
+
if (!this.hbi_1.atomicfu$compareAndSet(false, true))
|
|
331
|
+
return Unit_instance;
|
|
332
|
+
var tmp = new CoroutineName('socket-close');
|
|
333
|
+
launch(this, tmp, VOID, SocketBase$close$slambda_0(this, null));
|
|
334
|
+
};
|
|
335
|
+
protoOf(SocketBase).bbj = function (channel) {
|
|
336
|
+
// Inline function 'io.ktor.network.sockets.SocketBase.attachFor' call
|
|
337
|
+
var ref = this.kbi_1;
|
|
338
|
+
if (this.hbi_1.kotlinx$atomicfu$value) {
|
|
339
|
+
var e = IOException_init_$Create$('Socket closed');
|
|
340
|
+
close(channel, e);
|
|
341
|
+
throw e;
|
|
342
|
+
}
|
|
343
|
+
var j = this.cbj(channel);
|
|
344
|
+
if (!ref.atomicfu$compareAndSet(null, j)) {
|
|
345
|
+
var e_0 = IllegalStateException_init_$Create$('reading' + ' channel has already been set');
|
|
346
|
+
cancel(j);
|
|
347
|
+
throw e_0;
|
|
348
|
+
}
|
|
349
|
+
if (this.hbi_1.kotlinx$atomicfu$value) {
|
|
350
|
+
var e_1 = IOException_init_$Create$('Socket closed');
|
|
351
|
+
cancel(j);
|
|
352
|
+
close(channel, e_1);
|
|
353
|
+
throw e_1;
|
|
354
|
+
}
|
|
355
|
+
attachJob(channel, j);
|
|
356
|
+
invokeOnCompletion(j, this.lbi_1);
|
|
357
|
+
return j;
|
|
358
|
+
};
|
|
359
|
+
protoOf(SocketBase).dbj = function (channel) {
|
|
360
|
+
// Inline function 'io.ktor.network.sockets.SocketBase.attachFor' call
|
|
361
|
+
var ref = this.jbi_1;
|
|
362
|
+
if (this.hbi_1.kotlinx$atomicfu$value) {
|
|
363
|
+
var e = IOException_init_$Create$('Socket closed');
|
|
364
|
+
close(channel, e);
|
|
365
|
+
throw e;
|
|
366
|
+
}
|
|
367
|
+
var j = this.ebj(channel);
|
|
368
|
+
if (!ref.atomicfu$compareAndSet(null, j)) {
|
|
369
|
+
var e_0 = IllegalStateException_init_$Create$('writing' + ' channel has already been set');
|
|
370
|
+
cancel(j);
|
|
371
|
+
throw e_0;
|
|
372
|
+
}
|
|
373
|
+
if (this.hbi_1.kotlinx$atomicfu$value) {
|
|
374
|
+
var e_1 = IOException_init_$Create$('Socket closed');
|
|
375
|
+
cancel(j);
|
|
376
|
+
close(channel, e_1);
|
|
377
|
+
throw e_1;
|
|
378
|
+
}
|
|
379
|
+
attachJob(channel, j);
|
|
380
|
+
invokeOnCompletion(j, this.lbi_1);
|
|
381
|
+
return j;
|
|
382
|
+
};
|
|
383
|
+
function GeneralSocketOptions(customOptions) {
|
|
384
|
+
SocketOptions.call(this, customOptions);
|
|
385
|
+
}
|
|
386
|
+
function AcceptorOptions(customOptions) {
|
|
387
|
+
SocketOptions.call(this, customOptions);
|
|
388
|
+
this.kbj_1 = 511;
|
|
389
|
+
}
|
|
390
|
+
function PeerSocketOptions(customOptions) {
|
|
391
|
+
SocketOptions.call(this, customOptions);
|
|
392
|
+
this.pbj_1 = -1;
|
|
393
|
+
this.qbj_1 = -1;
|
|
394
|
+
}
|
|
395
|
+
protoOf(PeerSocketOptions).fbj = function (from) {
|
|
396
|
+
protoOf(SocketOptions).fbj.call(this, from);
|
|
397
|
+
if (from instanceof PeerSocketOptions) {
|
|
398
|
+
this.pbj_1 = from.pbj_1;
|
|
399
|
+
this.qbj_1 = from.qbj_1;
|
|
400
|
+
}
|
|
401
|
+
};
|
|
402
|
+
function Companion() {
|
|
403
|
+
}
|
|
404
|
+
protoOf(Companion).gbi = function () {
|
|
405
|
+
return new GeneralSocketOptions(HashMap_init_$Create$());
|
|
406
|
+
};
|
|
407
|
+
var Companion_instance_0;
|
|
408
|
+
function Companion_getInstance() {
|
|
409
|
+
return Companion_instance_0;
|
|
410
|
+
}
|
|
411
|
+
function SocketOptions(customOptions) {
|
|
412
|
+
this.bbi_1 = customOptions;
|
|
413
|
+
this.cbi_1 = Companion_getInstance_0().sbj_1;
|
|
414
|
+
this.dbi_1 = false;
|
|
415
|
+
this.ebi_1 = false;
|
|
416
|
+
}
|
|
417
|
+
protoOf(SocketOptions).fbj = function (from) {
|
|
418
|
+
this.cbi_1 = from.cbi_1;
|
|
419
|
+
this.dbi_1 = from.dbi_1;
|
|
420
|
+
this.ebi_1 = from.ebi_1;
|
|
421
|
+
};
|
|
422
|
+
protoOf(SocketOptions).fbi = function () {
|
|
423
|
+
// Inline function 'kotlin.apply' call
|
|
424
|
+
var this_0 = new PeerSocketOptions(HashMap_init_$Create$_0(this.bbi_1));
|
|
425
|
+
this.fbj(this);
|
|
426
|
+
return this_0;
|
|
427
|
+
};
|
|
428
|
+
protoOf(SocketOptions).rbj = function () {
|
|
429
|
+
// Inline function 'kotlin.apply' call
|
|
430
|
+
var this_0 = new AcceptorOptions(HashMap_init_$Create$_0(this.bbi_1));
|
|
431
|
+
this_0.fbj(this);
|
|
432
|
+
return this_0;
|
|
433
|
+
};
|
|
434
|
+
function openReadChannel(_this__u8e3s4) {
|
|
435
|
+
// Inline function 'kotlin.also' call
|
|
436
|
+
var this_0 = new ByteChannel(false);
|
|
437
|
+
_this__u8e3s4.bbj(this_0);
|
|
438
|
+
return this_0;
|
|
439
|
+
}
|
|
440
|
+
function openWriteChannel(_this__u8e3s4, autoFlush) {
|
|
441
|
+
autoFlush = autoFlush === VOID ? false : autoFlush;
|
|
442
|
+
// Inline function 'kotlin.also' call
|
|
443
|
+
var this_0 = new ByteChannel(autoFlush);
|
|
444
|
+
_this__u8e3s4.dbj(this_0);
|
|
445
|
+
return this_0;
|
|
446
|
+
}
|
|
447
|
+
function awaitClosed(_this__u8e3s4, $completion) {
|
|
448
|
+
var tmp = new $awaitClosedCOROUTINE$(_this__u8e3s4, $completion);
|
|
449
|
+
tmp.z9_1 = Unit_instance;
|
|
450
|
+
tmp.aa_1 = null;
|
|
451
|
+
return tmp.fa();
|
|
452
|
+
}
|
|
453
|
+
function ASocket() {
|
|
454
|
+
}
|
|
455
|
+
function $awaitClosedCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
456
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
457
|
+
this.fbk_1 = _this__u8e3s4;
|
|
458
|
+
}
|
|
459
|
+
protoOf($awaitClosedCOROUTINE$).fa = function () {
|
|
460
|
+
var suspendResult = this.z9_1;
|
|
461
|
+
$sm: do
|
|
462
|
+
try {
|
|
463
|
+
var tmp = this.x9_1;
|
|
464
|
+
switch (tmp) {
|
|
465
|
+
case 0:
|
|
466
|
+
this.y9_1 = 2;
|
|
467
|
+
this.x9_1 = 1;
|
|
468
|
+
suspendResult = this.fbk_1.obi().g1x(this);
|
|
469
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
470
|
+
return suspendResult;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
continue $sm;
|
|
474
|
+
case 1:
|
|
475
|
+
if (this.fbk_1.obi().w1w())
|
|
476
|
+
throw this.fbk_1.obi().z1w();
|
|
477
|
+
return Unit_instance;
|
|
478
|
+
case 2:
|
|
479
|
+
throw this.aa_1;
|
|
480
|
+
}
|
|
481
|
+
} catch ($p) {
|
|
482
|
+
var e = $p;
|
|
483
|
+
if (this.y9_1 === 2) {
|
|
484
|
+
throw e;
|
|
485
|
+
} else {
|
|
486
|
+
this.x9_1 = this.y9_1;
|
|
487
|
+
this.aa_1 = e;
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
while (true);
|
|
491
|
+
};
|
|
492
|
+
function TcpSocketBuilder$bind$lambda(_this__u8e3s4) {
|
|
493
|
+
return Unit_instance;
|
|
494
|
+
}
|
|
495
|
+
function TcpSocketBuilder(selector, options) {
|
|
496
|
+
this.gbk_1 = selector;
|
|
497
|
+
this.hbk_1 = options;
|
|
498
|
+
}
|
|
499
|
+
protoOf(TcpSocketBuilder).ibk = function (hostname, port, configure, $completion) {
|
|
500
|
+
return this.jbk(new InetSocketAddress(hostname, port), configure, $completion);
|
|
501
|
+
};
|
|
502
|
+
protoOf(TcpSocketBuilder).jbk = function (localAddress, configure, $completion) {
|
|
503
|
+
// Inline function 'kotlin.apply' call
|
|
504
|
+
var this_0 = this.hbk_1.rbj();
|
|
505
|
+
configure(this_0);
|
|
506
|
+
return tcpBind(this.gbk_1, localAddress, this_0, $completion);
|
|
507
|
+
};
|
|
508
|
+
protoOf(TcpSocketBuilder).kbk = function (localAddress, configure, $completion, $super) {
|
|
509
|
+
localAddress = localAddress === VOID ? null : localAddress;
|
|
510
|
+
var tmp;
|
|
511
|
+
if (configure === VOID) {
|
|
512
|
+
tmp = TcpSocketBuilder$bind$lambda;
|
|
513
|
+
} else {
|
|
514
|
+
tmp = configure;
|
|
515
|
+
}
|
|
516
|
+
configure = tmp;
|
|
517
|
+
return $super === VOID ? this.jbk(localAddress, configure, $completion) : $super.jbk.call(this, localAddress, configure, $completion);
|
|
518
|
+
};
|
|
519
|
+
function _TypeOfService___init__impl__yslya3(value) {
|
|
520
|
+
return value;
|
|
521
|
+
}
|
|
522
|
+
function Companion_0() {
|
|
523
|
+
Companion_instance_1 = this;
|
|
524
|
+
this.sbj_1 = _TypeOfService___init__impl__yslya3(_UByte___init__impl__g9hnc4(0));
|
|
525
|
+
this.tbj_1 = _TypeOfService___init__impl__yslya3(_UByte___init__impl__g9hnc4(2));
|
|
526
|
+
this.ubj_1 = _TypeOfService___init__impl__yslya3(_UByte___init__impl__g9hnc4(4));
|
|
527
|
+
this.vbj_1 = _TypeOfService___init__impl__yslya3(_UByte___init__impl__g9hnc4(8));
|
|
528
|
+
this.wbj_1 = _TypeOfService___init__impl__yslya3(_UByte___init__impl__g9hnc4(16));
|
|
529
|
+
}
|
|
530
|
+
var Companion_instance_1;
|
|
531
|
+
function Companion_getInstance_0() {
|
|
532
|
+
if (Companion_instance_1 == null)
|
|
533
|
+
new Companion_0();
|
|
534
|
+
return Companion_instance_1;
|
|
535
|
+
}
|
|
536
|
+
function nodeNet() {
|
|
537
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
538
|
+
return eval('require')('node:net');
|
|
539
|
+
}
|
|
540
|
+
function CreateServerOptions(block) {
|
|
541
|
+
return createObject(block);
|
|
542
|
+
}
|
|
543
|
+
function toJsError(_this__u8e3s4) {
|
|
544
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
545
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
546
|
+
return _this__u8e3s4;
|
|
547
|
+
}
|
|
548
|
+
function toThrowable(_this__u8e3s4) {
|
|
549
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
550
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
551
|
+
return _this__u8e3s4;
|
|
552
|
+
}
|
|
553
|
+
function toByteArray(_this__u8e3s4) {
|
|
554
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
555
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
556
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
557
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
558
|
+
return new Int8Array(_this__u8e3s4);
|
|
559
|
+
}
|
|
560
|
+
function toJsBuffer(_this__u8e3s4, fromIndex, toIndex) {
|
|
561
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
562
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
563
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
564
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
565
|
+
return _this__u8e3s4.subarray(fromIndex, toIndex);
|
|
566
|
+
}
|
|
567
|
+
function createObject(block) {
|
|
568
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
569
|
+
// Inline function 'kotlin.apply' call
|
|
570
|
+
var this_0 = {};
|
|
571
|
+
block(this_0);
|
|
572
|
+
return this_0;
|
|
573
|
+
}
|
|
574
|
+
function toSocketAddress(_this__u8e3s4) {
|
|
575
|
+
if (typeof _this__u8e3s4 === 'string') {
|
|
576
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
577
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
578
|
+
return new UnixSocketAddress(_this__u8e3s4);
|
|
579
|
+
}
|
|
580
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
581
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
582
|
+
var info = _this__u8e3s4;
|
|
583
|
+
return new InetSocketAddress(info.address, info.port);
|
|
584
|
+
}
|
|
585
|
+
function ServerListenOptions(block) {
|
|
586
|
+
return createObject(block);
|
|
587
|
+
}
|
|
588
|
+
function SelectableBase() {
|
|
589
|
+
}
|
|
590
|
+
function SelectorManager(dispatcher) {
|
|
591
|
+
dispatcher = dispatcher === VOID ? EmptyCoroutineContext_getInstance() : dispatcher;
|
|
592
|
+
return NoopSelectorManager_instance;
|
|
593
|
+
}
|
|
594
|
+
function NoopSelectorManager() {
|
|
595
|
+
}
|
|
596
|
+
protoOf(NoopSelectorManager).z1v = function () {
|
|
597
|
+
return EmptyCoroutineContext_getInstance();
|
|
598
|
+
};
|
|
599
|
+
protoOf(NoopSelectorManager).u4 = function () {
|
|
600
|
+
};
|
|
601
|
+
var NoopSelectorManager_instance;
|
|
602
|
+
function NoopSelectorManager_getInstance() {
|
|
603
|
+
return NoopSelectorManager_instance;
|
|
604
|
+
}
|
|
605
|
+
function ServerSocketContext$initiate$lambda(this$0) {
|
|
606
|
+
return function (it) {
|
|
607
|
+
this$0.lbk_1.close();
|
|
608
|
+
this$0.obk_1.k1x();
|
|
609
|
+
this$0.nbk_1.y2i();
|
|
610
|
+
return Unit_instance;
|
|
611
|
+
};
|
|
612
|
+
}
|
|
613
|
+
function ServerSocketContext$initiate$lambda_0(this$0) {
|
|
614
|
+
return function (socket) {
|
|
615
|
+
var context = new SocketContext(socket, this$0.mbk_1, this$0.obk_1);
|
|
616
|
+
context.tbk(null);
|
|
617
|
+
this$0.nbk_1.n2i(context.ubk());
|
|
618
|
+
return Unit_instance;
|
|
619
|
+
};
|
|
620
|
+
}
|
|
621
|
+
function ServerSocketContext$initiate$lambda_1($cont, this$0) {
|
|
622
|
+
return function () {
|
|
623
|
+
var tmp;
|
|
624
|
+
if ($cont.a1w()) {
|
|
625
|
+
var tmp0 = $cont;
|
|
626
|
+
// Inline function 'kotlin.coroutines.resumeWithException' call
|
|
627
|
+
// Inline function 'kotlin.Companion.failure' call
|
|
628
|
+
var exception = IOException_init_$Create$('Failed to bind');
|
|
629
|
+
var tmp$ret$0 = _Result___init__impl__xyqfz8(createFailure(exception));
|
|
630
|
+
tmp0.ia(tmp$ret$0);
|
|
631
|
+
tmp = Unit_instance;
|
|
632
|
+
} else {
|
|
633
|
+
cancel_0(get_job(this$0.obk_1), 'Server closed');
|
|
634
|
+
tmp = Unit_instance;
|
|
635
|
+
}
|
|
636
|
+
return Unit_instance;
|
|
637
|
+
};
|
|
638
|
+
}
|
|
639
|
+
function ServerSocketContext$initiate$lambda_2($cont, this$0) {
|
|
640
|
+
return function (error) {
|
|
641
|
+
var tmp;
|
|
642
|
+
if ($cont.a1w()) {
|
|
643
|
+
var tmp0 = $cont;
|
|
644
|
+
// Inline function 'kotlin.coroutines.resumeWithException' call
|
|
645
|
+
// Inline function 'kotlin.Companion.failure' call
|
|
646
|
+
var exception = IOException_init_$Create$_0('Failed to bind', toThrowable(error));
|
|
647
|
+
var tmp$ret$0 = _Result___init__impl__xyqfz8(createFailure(exception));
|
|
648
|
+
tmp0.ia(tmp$ret$0);
|
|
649
|
+
tmp = Unit_instance;
|
|
650
|
+
} else {
|
|
651
|
+
cancel_0(get_job(this$0.obk_1), 'Server failed', toThrowable(error));
|
|
652
|
+
tmp = Unit_instance;
|
|
653
|
+
}
|
|
654
|
+
return Unit_instance;
|
|
655
|
+
};
|
|
656
|
+
}
|
|
657
|
+
function ServerSocketContext$initiate$lambda_3($cont, this$0) {
|
|
658
|
+
return function () {
|
|
659
|
+
var tmp0 = $cont;
|
|
660
|
+
// Inline function 'kotlin.coroutines.resume' call
|
|
661
|
+
// Inline function 'kotlin.Companion.success' call
|
|
662
|
+
var value = new ServerSocketImpl(toSocketAddress(ensureNotNull(this$0.lbk_1.address())), this$0.obk_1, this$0.nbk_1, this$0.lbk_1);
|
|
663
|
+
var tmp$ret$0 = _Result___init__impl__xyqfz8(value);
|
|
664
|
+
tmp0.ia(tmp$ret$0);
|
|
665
|
+
return Unit_instance;
|
|
666
|
+
};
|
|
667
|
+
}
|
|
668
|
+
function ServerSocketContext(server, localAddress, parentContext) {
|
|
669
|
+
this.lbk_1 = server;
|
|
670
|
+
this.mbk_1 = localAddress;
|
|
671
|
+
this.nbk_1 = Channel(2147483647);
|
|
672
|
+
this.obk_1 = SupervisorJob(parentContext);
|
|
673
|
+
}
|
|
674
|
+
protoOf(ServerSocketContext).vbk = function (cont) {
|
|
675
|
+
cont.c22(ServerSocketContext$initiate$lambda(this));
|
|
676
|
+
onConnection(this.lbk_1, ServerSocketContext$initiate$lambda_0(this));
|
|
677
|
+
onClose_0(this.lbk_1, ServerSocketContext$initiate$lambda_1(cont, this));
|
|
678
|
+
onError_0(this.lbk_1, ServerSocketContext$initiate$lambda_2(cont, this));
|
|
679
|
+
onListening(this.lbk_1, ServerSocketContext$initiate$lambda_3(cont, this));
|
|
680
|
+
this.lbk_1.listen(ServerListenOptions_0(this.mbk_1));
|
|
681
|
+
};
|
|
682
|
+
function ServerSocketImpl$lambda(this$0) {
|
|
683
|
+
return function (it) {
|
|
684
|
+
this$0.zbk_1.close();
|
|
685
|
+
this$0.ybk_1.y2i();
|
|
686
|
+
return Unit_instance;
|
|
687
|
+
};
|
|
688
|
+
}
|
|
689
|
+
function ServerSocketImpl(localAddress, socketContext, incoming, server) {
|
|
690
|
+
this.wbk_1 = localAddress;
|
|
691
|
+
this.xbk_1 = socketContext;
|
|
692
|
+
this.ybk_1 = incoming;
|
|
693
|
+
this.zbk_1 = server;
|
|
694
|
+
this.xbk_1.c1x(ServerSocketImpl$lambda(this));
|
|
695
|
+
}
|
|
696
|
+
protoOf(ServerSocketImpl).jb4 = function () {
|
|
697
|
+
return this.wbk_1;
|
|
698
|
+
};
|
|
699
|
+
protoOf(ServerSocketImpl).obi = function () {
|
|
700
|
+
return this.xbk_1;
|
|
701
|
+
};
|
|
702
|
+
protoOf(ServerSocketImpl).abl = function ($completion) {
|
|
703
|
+
return this.ybk_1.q2i($completion);
|
|
704
|
+
};
|
|
705
|
+
protoOf(ServerSocketImpl).bbl = function ($completion) {
|
|
706
|
+
return this.abl($completion);
|
|
707
|
+
};
|
|
708
|
+
protoOf(ServerSocketImpl).u4 = function () {
|
|
709
|
+
this.ybk_1.u2i(IOException_init_$Create$('Server socket closed'));
|
|
710
|
+
this.xbk_1.y24();
|
|
711
|
+
};
|
|
712
|
+
function SocketContext$initiate$lambda(this$0) {
|
|
713
|
+
return function (it) {
|
|
714
|
+
this$0.pbk_1.destroy(it == null ? null : toJsError(it));
|
|
715
|
+
this$0.sbk_1.k1x();
|
|
716
|
+
this$0.rbk_1.y2i();
|
|
717
|
+
return Unit_instance;
|
|
718
|
+
};
|
|
719
|
+
}
|
|
720
|
+
function SocketContext$initiate$lambda_0(this$0) {
|
|
721
|
+
return function (it) {
|
|
722
|
+
this$0.pbk_1.destroy(it == null ? null : toJsError(it));
|
|
723
|
+
return Unit_instance;
|
|
724
|
+
};
|
|
725
|
+
}
|
|
726
|
+
function SocketContext$initiate$lambda_1($connectCont, this$0) {
|
|
727
|
+
return function (error) {
|
|
728
|
+
var tmp0_safe_receiver = $connectCont;
|
|
729
|
+
var tmp;
|
|
730
|
+
if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a1w()) === true) {
|
|
731
|
+
var tmp0 = $connectCont;
|
|
732
|
+
// Inline function 'kotlin.coroutines.resumeWithException' call
|
|
733
|
+
// Inline function 'kotlin.Companion.failure' call
|
|
734
|
+
var exception = IOException_init_$Create$_0('Failed to connect', toThrowable(error));
|
|
735
|
+
var tmp$ret$0 = _Result___init__impl__xyqfz8(createFailure(exception));
|
|
736
|
+
tmp0.ia(tmp$ret$0);
|
|
737
|
+
tmp = Unit_instance;
|
|
738
|
+
} else {
|
|
739
|
+
cancel_0(get_job(this$0.sbk_1), 'Socket error', toThrowable(error));
|
|
740
|
+
tmp = Unit_instance;
|
|
741
|
+
}
|
|
742
|
+
return Unit_instance;
|
|
743
|
+
};
|
|
744
|
+
}
|
|
745
|
+
function SocketContext$initiate$lambda_2($connectCont, this$0) {
|
|
746
|
+
return function () {
|
|
747
|
+
var tmp0_safe_receiver = $connectCont;
|
|
748
|
+
var tmp;
|
|
749
|
+
if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a1w()) === true) {
|
|
750
|
+
var tmp0 = $connectCont;
|
|
751
|
+
// Inline function 'kotlin.coroutines.resumeWithException' call
|
|
752
|
+
// Inline function 'kotlin.Companion.failure' call
|
|
753
|
+
var exception = SocketTimeoutException_init_$Create$('timeout');
|
|
754
|
+
var tmp$ret$0 = _Result___init__impl__xyqfz8(createFailure(exception));
|
|
755
|
+
tmp0.ia(tmp$ret$0);
|
|
756
|
+
tmp = Unit_instance;
|
|
757
|
+
} else {
|
|
758
|
+
cancel_0(get_job(this$0.sbk_1), 'Socket timeout', SocketTimeoutException_init_$Create$('timeout'));
|
|
759
|
+
tmp = Unit_instance;
|
|
760
|
+
}
|
|
761
|
+
return Unit_instance;
|
|
762
|
+
};
|
|
763
|
+
}
|
|
764
|
+
function SocketContext$initiate$lambda_3(this$0) {
|
|
765
|
+
return function () {
|
|
766
|
+
this$0.rbk_1.w2i();
|
|
767
|
+
return Unit_instance;
|
|
768
|
+
};
|
|
769
|
+
}
|
|
770
|
+
function SocketContext$initiate$lambda_4(this$0) {
|
|
771
|
+
return function (it) {
|
|
772
|
+
cancel_0(get_job(this$0.sbk_1), 'Socket closed');
|
|
773
|
+
return Unit_instance;
|
|
774
|
+
};
|
|
775
|
+
}
|
|
776
|
+
function SocketContext$initiate$lambda_5(this$0) {
|
|
777
|
+
return function (data) {
|
|
778
|
+
this$0.rbk_1.n2i(data);
|
|
779
|
+
return Unit_instance;
|
|
780
|
+
};
|
|
781
|
+
}
|
|
782
|
+
function SocketContext$initiate$lambda_6($connectCont, this$0) {
|
|
783
|
+
return function () {
|
|
784
|
+
var tmp0 = $connectCont;
|
|
785
|
+
// Inline function 'kotlin.coroutines.resume' call
|
|
786
|
+
// Inline function 'kotlin.Companion.success' call
|
|
787
|
+
var value = this$0.ubk();
|
|
788
|
+
var tmp$ret$0 = _Result___init__impl__xyqfz8(value);
|
|
789
|
+
tmp0.ia(tmp$ret$0);
|
|
790
|
+
return Unit_instance;
|
|
791
|
+
};
|
|
792
|
+
}
|
|
793
|
+
function SocketContext(socket, address, parentContext) {
|
|
794
|
+
this.pbk_1 = socket;
|
|
795
|
+
this.qbk_1 = address;
|
|
796
|
+
this.rbk_1 = Channel(2147483647);
|
|
797
|
+
this.sbk_1 = Job(parentContext);
|
|
798
|
+
}
|
|
799
|
+
protoOf(SocketContext).tbk = function (connectCont) {
|
|
800
|
+
if (connectCont == null)
|
|
801
|
+
null;
|
|
802
|
+
else {
|
|
803
|
+
connectCont.c22(SocketContext$initiate$lambda(this));
|
|
804
|
+
}
|
|
805
|
+
this.sbk_1.c1x(SocketContext$initiate$lambda_0(this));
|
|
806
|
+
onError(this.pbk_1, SocketContext$initiate$lambda_1(connectCont, this));
|
|
807
|
+
onTimeout(this.pbk_1, SocketContext$initiate$lambda_2(connectCont, this));
|
|
808
|
+
onEnd(this.pbk_1, SocketContext$initiate$lambda_3(this));
|
|
809
|
+
onClose(this.pbk_1, SocketContext$initiate$lambda_4(this));
|
|
810
|
+
onData(this.pbk_1, SocketContext$initiate$lambda_5(this));
|
|
811
|
+
if (!(connectCont == null)) {
|
|
812
|
+
onConnect(this.pbk_1, SocketContext$initiate$lambda_6(connectCont, this));
|
|
813
|
+
}
|
|
814
|
+
};
|
|
815
|
+
protoOf(SocketContext).ubk = function () {
|
|
816
|
+
var tmp;
|
|
817
|
+
if (this.qbk_1 instanceof UnixSocketAddress) {
|
|
818
|
+
tmp = this.qbk_1;
|
|
819
|
+
} else {
|
|
820
|
+
tmp = new InetSocketAddress(this.pbk_1.localAddress, this.pbk_1.localPort);
|
|
821
|
+
}
|
|
822
|
+
var tmp_0 = tmp;
|
|
823
|
+
var tmp_1;
|
|
824
|
+
if (this.qbk_1 instanceof UnixSocketAddress) {
|
|
825
|
+
tmp_1 = this.qbk_1;
|
|
826
|
+
} else {
|
|
827
|
+
tmp_1 = new InetSocketAddress(this.pbk_1.remoteAddress, this.pbk_1.remotePort);
|
|
828
|
+
}
|
|
829
|
+
return new SocketImpl(tmp_0, tmp_1, this.sbk_1, this.rbk_1, this.pbk_1);
|
|
830
|
+
};
|
|
831
|
+
function SocketImpl$attachForWritingImpl$slambda$lambda($endCompleted) {
|
|
832
|
+
return function () {
|
|
833
|
+
$endCompleted.n24(Unit_instance);
|
|
834
|
+
return Unit_instance;
|
|
835
|
+
};
|
|
836
|
+
}
|
|
837
|
+
function SocketImpl$attachForReadingImpl$slambda(this$0, $channel, resultContinuation) {
|
|
838
|
+
this.kbl_1 = this$0;
|
|
839
|
+
this.lbl_1 = $channel;
|
|
840
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
841
|
+
}
|
|
842
|
+
protoOf(SocketImpl$attachForReadingImpl$slambda).y5w = function ($this$writer, $completion) {
|
|
843
|
+
var tmp = this.z5w($this$writer, $completion);
|
|
844
|
+
tmp.z9_1 = Unit_instance;
|
|
845
|
+
tmp.aa_1 = null;
|
|
846
|
+
return tmp.fa();
|
|
847
|
+
};
|
|
848
|
+
protoOf(SocketImpl$attachForReadingImpl$slambda).ra = function (p1, $completion) {
|
|
849
|
+
return this.y5w(p1 instanceof WriterScope ? p1 : THROW_CCE(), $completion);
|
|
850
|
+
};
|
|
851
|
+
protoOf(SocketImpl$attachForReadingImpl$slambda).fa = function () {
|
|
852
|
+
var suspendResult = this.z9_1;
|
|
853
|
+
$sm: do
|
|
854
|
+
try {
|
|
855
|
+
var tmp = this.x9_1;
|
|
856
|
+
switch (tmp) {
|
|
857
|
+
case 0:
|
|
858
|
+
this.y9_1 = 12;
|
|
859
|
+
var tmp_0 = this;
|
|
860
|
+
tmp_0.nbl_1 = this.kbl_1.jbm_1;
|
|
861
|
+
this.obl_1 = this.nbl_1;
|
|
862
|
+
var tmp_1 = this;
|
|
863
|
+
tmp_1.pbl_1 = this.obl_1;
|
|
864
|
+
this.x9_1 = 1;
|
|
865
|
+
continue $sm;
|
|
866
|
+
case 1:
|
|
867
|
+
this.rbl_1 = this.pbl_1;
|
|
868
|
+
this.sbl_1 = null;
|
|
869
|
+
this.x9_1 = 2;
|
|
870
|
+
continue $sm;
|
|
871
|
+
case 2:
|
|
872
|
+
this.x9_1 = 3;
|
|
873
|
+
continue $sm;
|
|
874
|
+
case 3:
|
|
875
|
+
this.y9_1 = 11;
|
|
876
|
+
this.y9_1 = 10;
|
|
877
|
+
var tmp_2 = this;
|
|
878
|
+
tmp_2.ubl_1 = this.rbl_1;
|
|
879
|
+
this.vbl_1 = this.ubl_1;
|
|
880
|
+
this.wbl_1 = this.vbl_1.p();
|
|
881
|
+
this.x9_1 = 4;
|
|
882
|
+
continue $sm;
|
|
883
|
+
case 4:
|
|
884
|
+
this.x9_1 = 5;
|
|
885
|
+
suspendResult = this.wbl_1.t2e(this);
|
|
886
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
887
|
+
return suspendResult;
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
continue $sm;
|
|
891
|
+
case 5:
|
|
892
|
+
if (!suspendResult) {
|
|
893
|
+
this.x9_1 = 8;
|
|
894
|
+
continue $sm;
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
this.xbl_1 = this.wbl_1.r();
|
|
898
|
+
var tmp_3 = this;
|
|
899
|
+
tmp_3.ybl_1 = this.xbl_1;
|
|
900
|
+
this.zbl_1 = this.ybl_1;
|
|
901
|
+
this.x9_1 = 6;
|
|
902
|
+
suspendResult = writeByteArray(this.lbl_1, toByteArray(this.zbl_1), this);
|
|
903
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
904
|
+
return suspendResult;
|
|
905
|
+
}
|
|
906
|
+
|
|
907
|
+
continue $sm;
|
|
908
|
+
case 6:
|
|
909
|
+
this.x9_1 = 7;
|
|
910
|
+
suspendResult = this.lbl_1.c4i(this);
|
|
911
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
912
|
+
return suspendResult;
|
|
913
|
+
}
|
|
914
|
+
|
|
915
|
+
continue $sm;
|
|
916
|
+
case 7:
|
|
917
|
+
this.x9_1 = 4;
|
|
918
|
+
continue $sm;
|
|
919
|
+
case 8:
|
|
920
|
+
var tmp_4 = this;
|
|
921
|
+
tmp_4.tbl_1 = Unit_instance;
|
|
922
|
+
this.y9_1 = 12;
|
|
923
|
+
this.x9_1 = 9;
|
|
924
|
+
var tmp_5 = this;
|
|
925
|
+
continue $sm;
|
|
926
|
+
case 9:
|
|
927
|
+
this.y9_1 = 12;
|
|
928
|
+
var tmp_6 = this;
|
|
929
|
+
cancelConsumed(this.rbl_1, this.sbl_1);
|
|
930
|
+
tmp_6.qbl_1 = Unit_instance;
|
|
931
|
+
this.x9_1 = 14;
|
|
932
|
+
continue $sm;
|
|
933
|
+
case 10:
|
|
934
|
+
this.y9_1 = 11;
|
|
935
|
+
var tmp_7 = this.aa_1;
|
|
936
|
+
if (tmp_7 instanceof Error) {
|
|
937
|
+
var e = this.aa_1;
|
|
938
|
+
var tmp_8 = this;
|
|
939
|
+
this.sbl_1 = e;
|
|
940
|
+
throw e;
|
|
941
|
+
} else {
|
|
942
|
+
throw this.aa_1;
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
case 11:
|
|
946
|
+
this.y9_1 = 12;
|
|
947
|
+
var t = this.aa_1;
|
|
948
|
+
cancelConsumed(this.rbl_1, this.sbl_1);
|
|
949
|
+
throw t;
|
|
950
|
+
case 12:
|
|
951
|
+
throw this.aa_1;
|
|
952
|
+
case 13:
|
|
953
|
+
this.y9_1 = 12;
|
|
954
|
+
cancelConsumed(this.rbl_1, this.sbl_1);
|
|
955
|
+
if (false) {
|
|
956
|
+
this.x9_1 = 1;
|
|
957
|
+
continue $sm;
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
this.x9_1 = 14;
|
|
961
|
+
continue $sm;
|
|
962
|
+
case 14:
|
|
963
|
+
return Unit_instance;
|
|
964
|
+
}
|
|
965
|
+
} catch ($p) {
|
|
966
|
+
var e_0 = $p;
|
|
967
|
+
if (this.y9_1 === 12) {
|
|
968
|
+
throw e_0;
|
|
969
|
+
} else {
|
|
970
|
+
this.x9_1 = this.y9_1;
|
|
971
|
+
this.aa_1 = e_0;
|
|
972
|
+
}
|
|
973
|
+
}
|
|
974
|
+
while (true);
|
|
975
|
+
};
|
|
976
|
+
protoOf(SocketImpl$attachForReadingImpl$slambda).z5w = function ($this$writer, completion) {
|
|
977
|
+
var i = new SocketImpl$attachForReadingImpl$slambda(this.kbl_1, this.lbl_1, completion);
|
|
978
|
+
i.mbl_1 = $this$writer;
|
|
979
|
+
return i;
|
|
980
|
+
};
|
|
981
|
+
function SocketImpl$attachForReadingImpl$slambda_0(this$0, $channel, resultContinuation) {
|
|
982
|
+
var i = new SocketImpl$attachForReadingImpl$slambda(this$0, $channel, resultContinuation);
|
|
983
|
+
var l = function ($this$writer, $completion) {
|
|
984
|
+
return i.y5w($this$writer, $completion);
|
|
985
|
+
};
|
|
986
|
+
l.$arity = 1;
|
|
987
|
+
return l;
|
|
988
|
+
}
|
|
989
|
+
function SocketImpl$attachForWritingImpl$slambda($channel, this$0, resultContinuation) {
|
|
990
|
+
this.tbm_1 = $channel;
|
|
991
|
+
this.ubm_1 = this$0;
|
|
992
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
993
|
+
}
|
|
994
|
+
protoOf(SocketImpl$attachForWritingImpl$slambda).q5q = function ($this$reader, $completion) {
|
|
995
|
+
var tmp = this.r5q($this$reader, $completion);
|
|
996
|
+
tmp.z9_1 = Unit_instance;
|
|
997
|
+
tmp.aa_1 = null;
|
|
998
|
+
return tmp.fa();
|
|
999
|
+
};
|
|
1000
|
+
protoOf(SocketImpl$attachForWritingImpl$slambda).ra = function (p1, $completion) {
|
|
1001
|
+
return this.q5q(p1 instanceof ReaderScope ? p1 : THROW_CCE(), $completion);
|
|
1002
|
+
};
|
|
1003
|
+
protoOf(SocketImpl$attachForWritingImpl$slambda).fa = function () {
|
|
1004
|
+
var suspendResult = this.z9_1;
|
|
1005
|
+
$sm: do
|
|
1006
|
+
try {
|
|
1007
|
+
var tmp = this.x9_1;
|
|
1008
|
+
switch (tmp) {
|
|
1009
|
+
case 0:
|
|
1010
|
+
this.y9_1 = 10;
|
|
1011
|
+
this.x9_1 = 1;
|
|
1012
|
+
continue $sm;
|
|
1013
|
+
case 1:
|
|
1014
|
+
if (!true) {
|
|
1015
|
+
this.x9_1 = 11;
|
|
1016
|
+
continue $sm;
|
|
1017
|
+
}
|
|
1018
|
+
|
|
1019
|
+
var tmp_0 = this;
|
|
1020
|
+
tmp_0.wbm_1 = this.tbm_1;
|
|
1021
|
+
this.x9_1 = 2;
|
|
1022
|
+
continue $sm;
|
|
1023
|
+
case 2:
|
|
1024
|
+
this.ybm_1 = this.wbm_1;
|
|
1025
|
+
if (this.ybm_1.l4i()) {
|
|
1026
|
+
this.xbm_1 = -1;
|
|
1027
|
+
this.x9_1 = 7;
|
|
1028
|
+
continue $sm;
|
|
1029
|
+
} else {
|
|
1030
|
+
this.x9_1 = 3;
|
|
1031
|
+
continue $sm;
|
|
1032
|
+
}
|
|
1033
|
+
|
|
1034
|
+
case 3:
|
|
1035
|
+
if (this.ybm_1.e4i().r3a()) {
|
|
1036
|
+
this.x9_1 = 4;
|
|
1037
|
+
suspendResult = this.ybm_1.n4i(VOID, this);
|
|
1038
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1039
|
+
return suspendResult;
|
|
1040
|
+
}
|
|
1041
|
+
continue $sm;
|
|
1042
|
+
} else {
|
|
1043
|
+
this.x9_1 = 5;
|
|
1044
|
+
continue $sm;
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
case 4:
|
|
1048
|
+
this.x9_1 = 5;
|
|
1049
|
+
continue $sm;
|
|
1050
|
+
case 5:
|
|
1051
|
+
if (this.ybm_1.l4i()) {
|
|
1052
|
+
this.xbm_1 = -1;
|
|
1053
|
+
this.x9_1 = 7;
|
|
1054
|
+
continue $sm;
|
|
1055
|
+
} else {
|
|
1056
|
+
this.x9_1 = 6;
|
|
1057
|
+
continue $sm;
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1060
|
+
case 6:
|
|
1061
|
+
var buffer = this.ybm_1.e4i().q3a();
|
|
1062
|
+
if (!!buffer.r3a()) {
|
|
1063
|
+
var message = 'Buffer is empty';
|
|
1064
|
+
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1067
|
+
var head = ensureNotNull(buffer.n3a_1);
|
|
1068
|
+
var tmp0 = head.j3d(true);
|
|
1069
|
+
var tmp2 = head.w3a_1;
|
|
1070
|
+
var tmp_1 = this;
|
|
1071
|
+
var endIndex = head.x3a_1;
|
|
1072
|
+
this.ubm_1.kbm_1.write(toJsBuffer(tmp0, tmp2, endIndex));
|
|
1073
|
+
tmp_1.zbm_1 = endIndex - tmp2 | 0;
|
|
1074
|
+
var bytesRead = this.zbm_1;
|
|
1075
|
+
if (!(bytesRead === 0)) {
|
|
1076
|
+
if (bytesRead < 0)
|
|
1077
|
+
throw IllegalStateException_init_$Create$('Returned negative read bytes count');
|
|
1078
|
+
if (bytesRead > head.s())
|
|
1079
|
+
throw IllegalStateException_init_$Create$('Returned too many bytes');
|
|
1080
|
+
buffer.o3b(toLong(bytesRead));
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
this.xbm_1 = this.zbm_1;
|
|
1084
|
+
if (false) {
|
|
1085
|
+
this.x9_1 = 2;
|
|
1086
|
+
continue $sm;
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
this.x9_1 = 7;
|
|
1090
|
+
continue $sm;
|
|
1091
|
+
case 7:
|
|
1092
|
+
this.abn_1 = this.xbm_1;
|
|
1093
|
+
if (this.abn_1 === -1) {
|
|
1094
|
+
this.bbn_1 = CompletableDeferred();
|
|
1095
|
+
this.ubm_1.kbm_1.end(SocketImpl$attachForWritingImpl$slambda$lambda(this.bbn_1));
|
|
1096
|
+
this.x9_1 = 9;
|
|
1097
|
+
suspendResult = this.bbn_1.w21(this);
|
|
1098
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1099
|
+
return suspendResult;
|
|
1100
|
+
}
|
|
1101
|
+
continue $sm;
|
|
1102
|
+
} else {
|
|
1103
|
+
this.x9_1 = 8;
|
|
1104
|
+
continue $sm;
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1107
|
+
case 8:
|
|
1108
|
+
this.x9_1 = 1;
|
|
1109
|
+
continue $sm;
|
|
1110
|
+
case 9:
|
|
1111
|
+
this.x9_1 = 11;
|
|
1112
|
+
continue $sm;
|
|
1113
|
+
case 10:
|
|
1114
|
+
throw this.aa_1;
|
|
1115
|
+
case 11:
|
|
1116
|
+
return Unit_instance;
|
|
1117
|
+
}
|
|
1118
|
+
} catch ($p) {
|
|
1119
|
+
var e = $p;
|
|
1120
|
+
if (this.y9_1 === 10) {
|
|
1121
|
+
throw e;
|
|
1122
|
+
} else {
|
|
1123
|
+
this.x9_1 = this.y9_1;
|
|
1124
|
+
this.aa_1 = e;
|
|
1125
|
+
}
|
|
1126
|
+
}
|
|
1127
|
+
while (true);
|
|
1128
|
+
};
|
|
1129
|
+
protoOf(SocketImpl$attachForWritingImpl$slambda).r5q = function ($this$reader, completion) {
|
|
1130
|
+
var i = new SocketImpl$attachForWritingImpl$slambda(this.tbm_1, this.ubm_1, completion);
|
|
1131
|
+
i.vbm_1 = $this$reader;
|
|
1132
|
+
return i;
|
|
1133
|
+
};
|
|
1134
|
+
function SocketImpl$attachForWritingImpl$slambda_0($channel, this$0, resultContinuation) {
|
|
1135
|
+
var i = new SocketImpl$attachForWritingImpl$slambda($channel, this$0, resultContinuation);
|
|
1136
|
+
var l = function ($this$reader, $completion) {
|
|
1137
|
+
return i.q5q($this$reader, $completion);
|
|
1138
|
+
};
|
|
1139
|
+
l.$arity = 1;
|
|
1140
|
+
return l;
|
|
1141
|
+
}
|
|
1142
|
+
function SocketImpl(localAddress, remoteAddress, coroutineContext, incoming, socket) {
|
|
1143
|
+
SocketBase.call(this, coroutineContext);
|
|
1144
|
+
this.gbm_1 = localAddress;
|
|
1145
|
+
this.hbm_1 = remoteAddress;
|
|
1146
|
+
this.ibm_1 = coroutineContext;
|
|
1147
|
+
this.jbm_1 = incoming;
|
|
1148
|
+
this.kbm_1 = socket;
|
|
1149
|
+
}
|
|
1150
|
+
protoOf(SocketImpl).jb4 = function () {
|
|
1151
|
+
return this.gbm_1;
|
|
1152
|
+
};
|
|
1153
|
+
protoOf(SocketImpl).tb4 = function () {
|
|
1154
|
+
return this.hbm_1;
|
|
1155
|
+
};
|
|
1156
|
+
protoOf(SocketImpl).z1v = function () {
|
|
1157
|
+
return this.ibm_1;
|
|
1158
|
+
};
|
|
1159
|
+
protoOf(SocketImpl).cbj = function (channel) {
|
|
1160
|
+
var tmp = Dispatchers_getInstance().x29_1;
|
|
1161
|
+
return writer(this, tmp, channel, SocketImpl$attachForReadingImpl$slambda_0(this, channel, null));
|
|
1162
|
+
};
|
|
1163
|
+
protoOf(SocketImpl).ebj = function (channel) {
|
|
1164
|
+
var tmp = Dispatchers_getInstance().x29_1;
|
|
1165
|
+
return reader(this, tmp, channel, SocketImpl$attachForWritingImpl$slambda_0(channel, this, null));
|
|
1166
|
+
};
|
|
1167
|
+
protoOf(SocketImpl).nbi = function () {
|
|
1168
|
+
this.kbm_1.destroy(null);
|
|
1169
|
+
return null;
|
|
1170
|
+
};
|
|
1171
|
+
function tcpBind(selector, localAddress, socketOptions, $completion) {
|
|
1172
|
+
var cancellable = new CancellableContinuationImpl(intercepted($completion), 1);
|
|
1173
|
+
cancellable.b20();
|
|
1174
|
+
var tmp = get_nodeNet();
|
|
1175
|
+
var server = tmp.createServer(CreateServerOptions(tcpBind$lambda));
|
|
1176
|
+
(new ServerSocketContext(server, localAddress, null)).vbk(cancellable);
|
|
1177
|
+
return cancellable.c20();
|
|
1178
|
+
}
|
|
1179
|
+
function tcpBind$lambda($this$CreateServerOptions) {
|
|
1180
|
+
return Unit_instance;
|
|
1181
|
+
}
|
|
1182
|
+
function get_nodeNet() {
|
|
1183
|
+
_init_properties_node_net_kt__gywyxb();
|
|
1184
|
+
var tmp0 = nodeNet$delegate;
|
|
1185
|
+
var tmp = KProperty0;
|
|
1186
|
+
// Inline function 'kotlin.getValue' call
|
|
1187
|
+
getPropertyCallableRef('nodeNet', 0, tmp, _get_nodeNet_$ref_y13ztx(), null);
|
|
1188
|
+
return tmp0.b1();
|
|
1189
|
+
}
|
|
1190
|
+
var nodeNet$delegate;
|
|
1191
|
+
function onError(_this__u8e3s4, block) {
|
|
1192
|
+
_init_properties_node_net_kt__gywyxb();
|
|
1193
|
+
return _this__u8e3s4.on('error', block);
|
|
1194
|
+
}
|
|
1195
|
+
function onTimeout(_this__u8e3s4, block) {
|
|
1196
|
+
_init_properties_node_net_kt__gywyxb();
|
|
1197
|
+
return _this__u8e3s4.on('timeout', block);
|
|
1198
|
+
}
|
|
1199
|
+
function onEnd(_this__u8e3s4, block) {
|
|
1200
|
+
_init_properties_node_net_kt__gywyxb();
|
|
1201
|
+
return _this__u8e3s4.on('end', block);
|
|
1202
|
+
}
|
|
1203
|
+
function onClose(_this__u8e3s4, block) {
|
|
1204
|
+
_init_properties_node_net_kt__gywyxb();
|
|
1205
|
+
return _this__u8e3s4.on('close', block);
|
|
1206
|
+
}
|
|
1207
|
+
function onData(_this__u8e3s4, block) {
|
|
1208
|
+
_init_properties_node_net_kt__gywyxb();
|
|
1209
|
+
return _this__u8e3s4.on('data', block);
|
|
1210
|
+
}
|
|
1211
|
+
function onConnect(_this__u8e3s4, block) {
|
|
1212
|
+
_init_properties_node_net_kt__gywyxb();
|
|
1213
|
+
return _this__u8e3s4.on('connect', block);
|
|
1214
|
+
}
|
|
1215
|
+
function onConnection(_this__u8e3s4, block) {
|
|
1216
|
+
_init_properties_node_net_kt__gywyxb();
|
|
1217
|
+
return _this__u8e3s4.on('connection', block);
|
|
1218
|
+
}
|
|
1219
|
+
function onClose_0(_this__u8e3s4, block) {
|
|
1220
|
+
_init_properties_node_net_kt__gywyxb();
|
|
1221
|
+
return _this__u8e3s4.on('close', block);
|
|
1222
|
+
}
|
|
1223
|
+
function onError_0(_this__u8e3s4, block) {
|
|
1224
|
+
_init_properties_node_net_kt__gywyxb();
|
|
1225
|
+
return _this__u8e3s4.on('error', block);
|
|
1226
|
+
}
|
|
1227
|
+
function onListening(_this__u8e3s4, block) {
|
|
1228
|
+
_init_properties_node_net_kt__gywyxb();
|
|
1229
|
+
return _this__u8e3s4.on('listening', block);
|
|
1230
|
+
}
|
|
1231
|
+
function ServerListenOptions_0(localAddress) {
|
|
1232
|
+
_init_properties_node_net_kt__gywyxb();
|
|
1233
|
+
return ServerListenOptions(ServerListenOptions$lambda(localAddress));
|
|
1234
|
+
}
|
|
1235
|
+
function nodeNet$delegate$lambda() {
|
|
1236
|
+
_init_properties_node_net_kt__gywyxb();
|
|
1237
|
+
// Inline function 'kotlin.runCatching' call
|
|
1238
|
+
var tmp;
|
|
1239
|
+
try {
|
|
1240
|
+
// Inline function 'kotlin.Companion.success' call
|
|
1241
|
+
var value = nodeNet();
|
|
1242
|
+
tmp = _Result___init__impl__xyqfz8(value);
|
|
1243
|
+
} catch ($p) {
|
|
1244
|
+
var tmp_0;
|
|
1245
|
+
if ($p instanceof Error) {
|
|
1246
|
+
var e = $p;
|
|
1247
|
+
// Inline function 'kotlin.Companion.failure' call
|
|
1248
|
+
tmp_0 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
1249
|
+
} else {
|
|
1250
|
+
throw $p;
|
|
1251
|
+
}
|
|
1252
|
+
tmp = tmp_0;
|
|
1253
|
+
}
|
|
1254
|
+
// Inline function 'kotlin.Result.getOrNull' call
|
|
1255
|
+
var this_0 = tmp;
|
|
1256
|
+
var tmp_1;
|
|
1257
|
+
if (_Result___get_isFailure__impl__jpiriv(this_0)) {
|
|
1258
|
+
tmp_1 = null;
|
|
1259
|
+
} else {
|
|
1260
|
+
var tmp_2 = _Result___get_value__impl__bjfvqg(this_0);
|
|
1261
|
+
tmp_1 = (tmp_2 == null ? true : !(tmp_2 == null)) ? tmp_2 : THROW_CCE();
|
|
1262
|
+
}
|
|
1263
|
+
var tmp0 = tmp_1;
|
|
1264
|
+
var tmp$ret$6;
|
|
1265
|
+
$l$block: {
|
|
1266
|
+
// Inline function 'kotlin.requireNotNull' call
|
|
1267
|
+
if (tmp0 == null) {
|
|
1268
|
+
var message = 'Node.js net module is not available. Please verify that you are using Node.js';
|
|
1269
|
+
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1270
|
+
} else {
|
|
1271
|
+
tmp$ret$6 = tmp0;
|
|
1272
|
+
break $l$block;
|
|
1273
|
+
}
|
|
1274
|
+
}
|
|
1275
|
+
return tmp$ret$6;
|
|
1276
|
+
}
|
|
1277
|
+
function _get_nodeNet_$ref_y13ztx() {
|
|
1278
|
+
return function () {
|
|
1279
|
+
return get_nodeNet();
|
|
1280
|
+
};
|
|
1281
|
+
}
|
|
1282
|
+
function ServerListenOptions$lambda($localAddress) {
|
|
1283
|
+
return function ($this$ServerListenOptions) {
|
|
1284
|
+
var tmp0_subject = $localAddress;
|
|
1285
|
+
var tmp;
|
|
1286
|
+
if (tmp0_subject instanceof InetSocketAddress) {
|
|
1287
|
+
$this$ServerListenOptions.port = $localAddress.ebn_1;
|
|
1288
|
+
$this$ServerListenOptions.host = $localAddress.dbn_1;
|
|
1289
|
+
tmp = Unit_instance;
|
|
1290
|
+
} else {
|
|
1291
|
+
if (tmp0_subject instanceof UnixSocketAddress) {
|
|
1292
|
+
$this$ServerListenOptions.path = $localAddress.cbn_1;
|
|
1293
|
+
tmp = Unit_instance;
|
|
1294
|
+
} else {
|
|
1295
|
+
if (tmp0_subject == null) {
|
|
1296
|
+
$this$ServerListenOptions.host = '0.0.0.0';
|
|
1297
|
+
$this$ServerListenOptions.port = 0;
|
|
1298
|
+
tmp = Unit_instance;
|
|
1299
|
+
} else {
|
|
1300
|
+
noWhenBranchMatchedException();
|
|
1301
|
+
}
|
|
1302
|
+
}
|
|
1303
|
+
}
|
|
1304
|
+
return Unit_instance;
|
|
1305
|
+
};
|
|
1306
|
+
}
|
|
1307
|
+
var properties_initialized_node_net_kt_hlweib;
|
|
1308
|
+
function _init_properties_node_net_kt__gywyxb() {
|
|
1309
|
+
if (!properties_initialized_node_net_kt_hlweib) {
|
|
1310
|
+
properties_initialized_node_net_kt_hlweib = true;
|
|
1311
|
+
nodeNet$delegate = lazy(nodeNet$delegate$lambda);
|
|
1312
|
+
}
|
|
1313
|
+
}
|
|
1314
|
+
function SocketAddress() {
|
|
1315
|
+
}
|
|
1316
|
+
function Companion_1() {
|
|
1317
|
+
}
|
|
1318
|
+
var Companion_instance_2;
|
|
1319
|
+
function Companion_getInstance_1() {
|
|
1320
|
+
return Companion_instance_2;
|
|
1321
|
+
}
|
|
1322
|
+
function UnixSocketAddress(path) {
|
|
1323
|
+
SocketAddress.call(this);
|
|
1324
|
+
this.cbn_1 = path;
|
|
1325
|
+
}
|
|
1326
|
+
protoOf(UnixSocketAddress).equals = function (other) {
|
|
1327
|
+
var tmp;
|
|
1328
|
+
if (other == null) {
|
|
1329
|
+
tmp = true;
|
|
1330
|
+
} else {
|
|
1331
|
+
tmp = !(other instanceof UnixSocketAddress);
|
|
1332
|
+
}
|
|
1333
|
+
if (tmp)
|
|
1334
|
+
return false;
|
|
1335
|
+
return other.cbn_1 === this.cbn_1;
|
|
1336
|
+
};
|
|
1337
|
+
protoOf(UnixSocketAddress).hashCode = function () {
|
|
1338
|
+
return getStringHashCode(this.cbn_1);
|
|
1339
|
+
};
|
|
1340
|
+
protoOf(UnixSocketAddress).toString = function () {
|
|
1341
|
+
return 'UnixSocketAddress(' + this.cbn_1 + ')';
|
|
1342
|
+
};
|
|
1343
|
+
function InetSocketAddress(hostname, port) {
|
|
1344
|
+
SocketAddress.call(this);
|
|
1345
|
+
this.dbn_1 = hostname;
|
|
1346
|
+
this.ebn_1 = port;
|
|
1347
|
+
}
|
|
1348
|
+
protoOf(InetSocketAddress).equals = function (other) {
|
|
1349
|
+
var tmp;
|
|
1350
|
+
if (other == null) {
|
|
1351
|
+
tmp = true;
|
|
1352
|
+
} else {
|
|
1353
|
+
tmp = !(other instanceof InetSocketAddress);
|
|
1354
|
+
}
|
|
1355
|
+
if (tmp)
|
|
1356
|
+
return false;
|
|
1357
|
+
return other.dbn_1 === this.dbn_1 && other.ebn_1 === this.ebn_1;
|
|
1358
|
+
};
|
|
1359
|
+
protoOf(InetSocketAddress).hashCode = function () {
|
|
1360
|
+
return imul(getStringHashCode(this.dbn_1), 31) + this.ebn_1 | 0;
|
|
1361
|
+
};
|
|
1362
|
+
protoOf(InetSocketAddress).toString = function () {
|
|
1363
|
+
return 'InetSocketAddress(' + this.dbn_1 + ':' + this.ebn_1 + ')';
|
|
1364
|
+
};
|
|
1365
|
+
function SocketTimeoutException_init_$Init$(message, $this) {
|
|
1366
|
+
SocketTimeoutException.call($this, message, null);
|
|
1367
|
+
return $this;
|
|
1368
|
+
}
|
|
1369
|
+
function SocketTimeoutException_init_$Create$(message) {
|
|
1370
|
+
var tmp = SocketTimeoutException_init_$Init$(message, objectCreate(protoOf(SocketTimeoutException)));
|
|
1371
|
+
captureStack(tmp, SocketTimeoutException_init_$Create$);
|
|
1372
|
+
return tmp;
|
|
1373
|
+
}
|
|
1374
|
+
function SocketTimeoutException(message, cause) {
|
|
1375
|
+
IOException_init_$Init$(message, cause, this);
|
|
1376
|
+
captureStack(this, SocketTimeoutException);
|
|
1377
|
+
}
|
|
1378
|
+
//region block: post-declaration
|
|
1379
|
+
protoOf(ServerSocketImpl).y1y = dispose;
|
|
1380
|
+
//endregion
|
|
1381
|
+
//region block: init
|
|
1382
|
+
Companion_instance_0 = new Companion();
|
|
1383
|
+
NoopSelectorManager_instance = new NoopSelectorManager();
|
|
1384
|
+
Companion_instance_2 = new Companion_1();
|
|
1385
|
+
//endregion
|
|
1386
|
+
//region block: exports
|
|
1387
|
+
_.$_$ = _.$_$ || {};
|
|
1388
|
+
_.$_$.a = awaitClosed;
|
|
1389
|
+
_.$_$.b = SelectorManager;
|
|
1390
|
+
_.$_$.c = InetSocketAddress;
|
|
1391
|
+
_.$_$.d = UnixSocketAddress;
|
|
1392
|
+
_.$_$.e = aSocket;
|
|
1393
|
+
_.$_$.f = openReadChannel;
|
|
1394
|
+
_.$_$.g = openWriteChannel;
|
|
1395
|
+
//endregion
|
|
1396
|
+
return _;
|
|
1397
|
+
}));
|
|
1398
|
+
|
|
1399
|
+
//# sourceMappingURL=ktor-ktor-network.js.map
|