@xiuper/mpp-core 0.0.2 → 1.0.1
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 +1796 -1796
- package/Kotlin-Immutable-Collections-kotlinx-collections-immutable.js +278 -278
- package/Xiuper-mpp-codegraph.js +240 -240
- package/kaml.js +639 -639
- package/koog-agents-agents-core.js +4606 -4606
- package/koog-agents-agents-tools.js +41 -41
- package/koog-agents-agents-utils.js +52 -52
- package/koog-http-client-http-client-core.js +4 -4
- package/koog-http-client-http-client-ktor.js +166 -166
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-anthropic-client.js +906 -906
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-deepseek-client.js +299 -299
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-google-client.js +838 -838
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-ollama-client.js +452 -452
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openai-client-base.js +1002 -1002
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openai-client.js +3358 -3358
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openrouter-client.js +532 -532
- package/koog-prompt-prompt-executor-prompt-executor-clients.js +29 -29
- package/koog-prompt-prompt-executor-prompt-executor-llms.js +25 -25
- package/koog-prompt-prompt-executor-prompt-executor-model.js +4 -4
- package/koog-prompt-prompt-llm.js +120 -120
- package/koog-prompt-prompt-markdown.js +30 -30
- package/koog-prompt-prompt-model.js +1055 -1055
- package/koog-prompt-prompt-structure.js +342 -342
- package/koog-utils.js +10 -10
- package/kotlin-kotlin-stdlib.js +453 -411
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-logging.js +116 -116
- package/kotlin-sdk-kotlin-sdk-client.js +260 -260
- package/kotlin-sdk-kotlin-sdk-core.js +2568 -2568
- package/kotlinx-atomicfu.js +5 -5
- package/kotlinx-coroutines-core.js +532 -654
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring.js +40 -40
- package/kotlinx-io-kotlinx-io-core.js +605 -605
- package/kotlinx-serialization-kotlinx-serialization-core.js +75 -75
- package/kotlinx-serialization-kotlinx-serialization-json.js +95 -95
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/ktor-ktor-client-content-negotiation.js +163 -163
- package/ktor-ktor-client-core.js +2237 -2235
- package/ktor-ktor-client-core.js.map +1 -1
- package/ktor-ktor-events.js +15 -15
- package/ktor-ktor-http-cio.js +725 -725
- package/ktor-ktor-http.js +805 -805
- package/ktor-ktor-io.js +766 -766
- package/ktor-ktor-network.js +285 -285
- package/ktor-ktor-serialization-kotlinx-json.js +1 -1
- package/ktor-ktor-serialization-kotlinx.js +130 -130
- package/ktor-ktor-serialization.js +68 -68
- package/ktor-ktor-server-cio.js +724 -724
- package/ktor-ktor-server-core.js +1793 -1793
- package/ktor-ktor-server-sse.js +125 -125
- package/ktor-ktor-sse.js +40 -40
- package/ktor-ktor-utils.js +690 -690
- package/ktor-ktor-websockets.js +49 -49
- package/markdown.js +1561 -1561
- package/okio-parent-okio.js +368 -368
- package/package.json +1 -1
- package/snakeyaml-engine-kmp.js +2005 -2005
- package/urlencoder-urlencoder-lib.js +43 -43
- package/xiuper-mpp-core.d.ts +45 -7
- package/xiuper-mpp-core.js +22405 -18664
- package/xiuper-mpp-core.js.map +1 -1
- package/autodev-mpp-core.d.ts +0 -1312
- package/autodev-mpp-core.js +0 -86483
- package/autodev-mpp-core.js.map +0 -1
package/ktor-ktor-network.js
CHANGED
|
@@ -25,74 +25,74 @@
|
|
|
25
25
|
'use strict';
|
|
26
26
|
//region block: imports
|
|
27
27
|
var imul = Math.imul;
|
|
28
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
29
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
28
|
+
var protoOf = kotlin_kotlin.$_$.ze;
|
|
29
|
+
var initMetadataForClass = kotlin_kotlin.$_$.xd;
|
|
30
30
|
var get_isCompleted = kotlin_io_ktor_ktor_io.$_$.m2;
|
|
31
31
|
var Unit_instance = kotlin_kotlin.$_$.h6;
|
|
32
32
|
var get_isCancelled = kotlin_io_ktor_ktor_io.$_$.l2;
|
|
33
33
|
var getCancellationException = kotlin_io_ktor_ktor_io.$_$.i2;
|
|
34
|
-
var addSuppressed = kotlin_kotlin.$_$.
|
|
35
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
36
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
37
|
-
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
38
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
39
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
34
|
+
var addSuppressed = kotlin_kotlin.$_$.ql;
|
|
35
|
+
var CoroutineImpl = kotlin_kotlin.$_$.wc;
|
|
36
|
+
var THROW_CCE = kotlin_kotlin.$_$.dl;
|
|
37
|
+
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.b2;
|
|
38
|
+
var isInterface = kotlin_kotlin.$_$.me;
|
|
39
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.gc;
|
|
40
40
|
var cancel = kotlin_io_ktor_ktor_io.$_$.d2;
|
|
41
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
41
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.ce;
|
|
42
42
|
var VOID = kotlin_kotlin.$_$.h;
|
|
43
43
|
var atomic$boolean$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.b;
|
|
44
44
|
var atomic$ref$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.d;
|
|
45
|
-
var Key_instance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
46
|
-
var Job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
47
|
-
var CoroutineName = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
48
|
-
var launch = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
45
|
+
var Key_instance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.w;
|
|
46
|
+
var Job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.c2;
|
|
47
|
+
var CoroutineName = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.z1;
|
|
48
|
+
var launch = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.p2;
|
|
49
49
|
var IOException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.c;
|
|
50
50
|
var close = kotlin_io_ktor_ktor_io.$_$.g2;
|
|
51
51
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.j2;
|
|
52
52
|
var attachJob = kotlin_io_ktor_ktor_io.$_$.c2;
|
|
53
53
|
var invokeOnCompletion = kotlin_io_ktor_ktor_io.$_$.j2;
|
|
54
54
|
var HashMap_init_$Create$ = kotlin_kotlin.$_$.w;
|
|
55
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
55
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.yd;
|
|
56
56
|
var HashMap_init_$Create$_0 = kotlin_kotlin.$_$.x;
|
|
57
57
|
var ByteChannel = kotlin_io_ktor_ktor_io.$_$.t1;
|
|
58
|
-
var AutoCloseable = kotlin_kotlin.$_$.
|
|
59
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
60
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
58
|
+
var AutoCloseable = kotlin_kotlin.$_$.jk;
|
|
59
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.be;
|
|
60
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.zd;
|
|
61
61
|
var _UByte___init__impl__g9hnc4 = kotlin_kotlin.$_$.x3;
|
|
62
62
|
var EmptyCoroutineContext_getInstance = kotlin_kotlin.$_$.i5;
|
|
63
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
64
|
-
var get_job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
65
|
-
var cancel_0 = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
63
|
+
var initMetadataForObject = kotlin_kotlin.$_$.de;
|
|
64
|
+
var get_job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.o2;
|
|
65
|
+
var cancel_0 = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.l2;
|
|
66
66
|
var Companion_instance = kotlin_kotlin.$_$.c6;
|
|
67
|
-
var createFailure = kotlin_kotlin.$_$.
|
|
67
|
+
var createFailure = kotlin_kotlin.$_$.vl;
|
|
68
68
|
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.s3;
|
|
69
69
|
var IOException_init_$Create$_0 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.e;
|
|
70
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
71
|
-
var Channel = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
72
|
-
var SupervisorJob = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
70
|
+
var ensureNotNull = kotlin_kotlin.$_$.wl;
|
|
71
|
+
var Channel = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.y;
|
|
72
|
+
var SupervisorJob = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.e2;
|
|
73
73
|
var WriterScope = kotlin_io_ktor_ktor_io.$_$.b2;
|
|
74
74
|
var writeByteArray = kotlin_io_ktor_ktor_io.$_$.n;
|
|
75
|
-
var cancelConsumed = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
75
|
+
var cancelConsumed = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.b1;
|
|
76
76
|
var ReaderScope = kotlin_io_ktor_ktor_io.$_$.a2;
|
|
77
77
|
var UnsafeBufferOperations_instance = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.f;
|
|
78
|
-
var toString = kotlin_kotlin.$_$.
|
|
78
|
+
var toString = kotlin_kotlin.$_$.df;
|
|
79
79
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.e2;
|
|
80
|
-
var toLong = kotlin_kotlin.$_$.
|
|
81
|
-
var CompletableDeferred = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
82
|
-
var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
80
|
+
var toLong = kotlin_kotlin.$_$.bf;
|
|
81
|
+
var CompletableDeferred = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.w1;
|
|
82
|
+
var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.u;
|
|
83
83
|
var writer = kotlin_io_ktor_ktor_io.$_$.r2;
|
|
84
84
|
var reader = kotlin_io_ktor_ktor_io.$_$.p2;
|
|
85
|
-
var intercepted = kotlin_kotlin.$_$.
|
|
86
|
-
var CancellableContinuationImpl = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
87
|
-
var KProperty0 = kotlin_kotlin.$_$.
|
|
88
|
-
var getPropertyCallableRef = kotlin_kotlin.$_$.
|
|
85
|
+
var intercepted = kotlin_kotlin.$_$.jc;
|
|
86
|
+
var CancellableContinuationImpl = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.t1;
|
|
87
|
+
var KProperty0 = kotlin_kotlin.$_$.vf;
|
|
88
|
+
var getPropertyCallableRef = kotlin_kotlin.$_$.ud;
|
|
89
89
|
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.w3;
|
|
90
90
|
var _Result___get_isFailure__impl__jpiriv = kotlin_kotlin.$_$.u3;
|
|
91
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
92
|
-
var lazy = kotlin_kotlin.$_$.
|
|
93
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
94
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
95
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
91
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.dm;
|
|
92
|
+
var lazy = kotlin_kotlin.$_$.cm;
|
|
93
|
+
var getStringHashCode = kotlin_kotlin.$_$.vd;
|
|
94
|
+
var objectCreate = kotlin_kotlin.$_$.ye;
|
|
95
|
+
var captureStack = kotlin_kotlin.$_$.gd;
|
|
96
96
|
var IOException = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.k;
|
|
97
97
|
var IOException_init_$Init$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.d;
|
|
98
98
|
//endregion
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
initMetadataForClass(SocketContext, 'SocketContext');
|
|
128
128
|
initMetadataForLambda(SocketImpl$attachForReadingImpl$slambda, CoroutineImpl, VOID, [1]);
|
|
129
129
|
initMetadataForLambda(SocketImpl$attachForWritingImpl$slambda, CoroutineImpl, VOID, [1]);
|
|
130
|
-
initMetadataForClass(SocketImpl, 'SocketImpl', VOID, SocketBase, [SocketBase,
|
|
130
|
+
initMetadataForClass(SocketImpl, 'SocketImpl', VOID, SocketBase, [SocketBase, CoroutineScope, ASocket]);
|
|
131
131
|
initMetadataForClass(SocketAddress, 'SocketAddress');
|
|
132
132
|
initMetadataForCompanion(Companion_1);
|
|
133
133
|
initMetadataForClass(UnixSocketAddress, 'UnixSocketAddress', VOID, SocketAddress);
|
|
@@ -135,22 +135,22 @@
|
|
|
135
135
|
initMetadataForClass(SocketTimeoutException, 'SocketTimeoutException', VOID, IOException);
|
|
136
136
|
//endregion
|
|
137
137
|
function SocketBuilder(selector, options) {
|
|
138
|
-
this.
|
|
139
|
-
this.
|
|
138
|
+
this.dbh_1 = selector;
|
|
139
|
+
this.ebh_1 = options;
|
|
140
140
|
}
|
|
141
|
-
protoOf(SocketBuilder).
|
|
142
|
-
return new TcpSocketBuilder(this.
|
|
141
|
+
protoOf(SocketBuilder).fbh = function () {
|
|
142
|
+
return new TcpSocketBuilder(this.dbh_1, this.ebh_1.kbh());
|
|
143
143
|
};
|
|
144
144
|
function aSocket(selector) {
|
|
145
|
-
return new SocketBuilder(selector, Companion_instance_0.
|
|
145
|
+
return new SocketBuilder(selector, Companion_instance_0.lbh());
|
|
146
146
|
}
|
|
147
147
|
function checkChannels($this) {
|
|
148
148
|
var tmp;
|
|
149
149
|
var tmp_0;
|
|
150
|
-
if ($this.
|
|
150
|
+
if ($this.mbh_1.kotlinx$atomicfu$value) {
|
|
151
151
|
// Inline function 'io.ktor.network.sockets.SocketBase.completedOrNotStarted' call
|
|
152
152
|
// Inline function 'kotlin.let' call
|
|
153
|
-
var it = $this.
|
|
153
|
+
var it = $this.obh_1.kotlinx$atomicfu$value;
|
|
154
154
|
tmp_0 = it == null || get_isCompleted(it);
|
|
155
155
|
} else {
|
|
156
156
|
tmp_0 = false;
|
|
@@ -158,16 +158,16 @@
|
|
|
158
158
|
if (tmp_0) {
|
|
159
159
|
// Inline function 'io.ktor.network.sockets.SocketBase.completedOrNotStarted' call
|
|
160
160
|
// Inline function 'kotlin.let' call
|
|
161
|
-
var it_0 = $this.
|
|
161
|
+
var it_0 = $this.pbh_1.kotlinx$atomicfu$value;
|
|
162
162
|
tmp = it_0 == null || get_isCompleted(it_0);
|
|
163
163
|
} else {
|
|
164
164
|
tmp = false;
|
|
165
165
|
}
|
|
166
166
|
if (tmp) {
|
|
167
|
-
if (!$this.
|
|
167
|
+
if (!$this.nbh_1.atomicfu$compareAndSet(false, true))
|
|
168
168
|
return Unit_instance;
|
|
169
169
|
// Inline function 'io.ktor.network.sockets.SocketBase.exception' call
|
|
170
|
-
var tmp0_safe_receiver = $this.
|
|
170
|
+
var tmp0_safe_receiver = $this.obh_1.kotlinx$atomicfu$value;
|
|
171
171
|
var tmp_1;
|
|
172
172
|
if (tmp0_safe_receiver == null) {
|
|
173
173
|
tmp_1 = null;
|
|
@@ -185,7 +185,7 @@
|
|
|
185
185
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : getCancellationException(tmp1_safe_receiver);
|
|
186
186
|
var e1 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.cause;
|
|
187
187
|
// Inline function 'io.ktor.network.sockets.SocketBase.exception' call
|
|
188
|
-
var tmp0_safe_receiver_0 = $this.
|
|
188
|
+
var tmp0_safe_receiver_0 = $this.pbh_1.kotlinx$atomicfu$value;
|
|
189
189
|
var tmp_3;
|
|
190
190
|
if (tmp0_safe_receiver_0 == null) {
|
|
191
191
|
tmp_3 = null;
|
|
@@ -202,12 +202,12 @@
|
|
|
202
202
|
var tmp1_safe_receiver_0 = tmp_3;
|
|
203
203
|
var tmp2_safe_receiver_0 = tmp1_safe_receiver_0 == null ? null : getCancellationException(tmp1_safe_receiver_0);
|
|
204
204
|
var e2 = tmp2_safe_receiver_0 == null ? null : tmp2_safe_receiver_0.cause;
|
|
205
|
-
var e3 = $this.
|
|
205
|
+
var e3 = $this.sbh();
|
|
206
206
|
var combined = combine($this, combine($this, e1, e2), e3);
|
|
207
207
|
if (combined == null)
|
|
208
|
-
$this.
|
|
208
|
+
$this.tbh().y24();
|
|
209
209
|
else
|
|
210
|
-
$this.
|
|
210
|
+
$this.tbh().x24(combined);
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
213
|
function combine($this, e1, e2) {
|
|
@@ -231,7 +231,7 @@
|
|
|
231
231
|
};
|
|
232
232
|
}
|
|
233
233
|
function SocketBase$close$slambda(this$0, resultContinuation) {
|
|
234
|
-
this.
|
|
234
|
+
this.cbi_1 = this$0;
|
|
235
235
|
CoroutineImpl.call(this, resultContinuation);
|
|
236
236
|
}
|
|
237
237
|
protoOf(SocketBase$close$slambda).x2q = function ($this$launch, $completion) {
|
|
@@ -251,14 +251,14 @@
|
|
|
251
251
|
switch (tmp) {
|
|
252
252
|
case 0:
|
|
253
253
|
this.y9_1 = 3;
|
|
254
|
-
this.
|
|
255
|
-
if (this.
|
|
256
|
-
this.
|
|
254
|
+
this.ebi_1 = this.cbi_1.obh_1.kotlinx$atomicfu$value;
|
|
255
|
+
if (this.ebi_1 == null) {
|
|
256
|
+
this.fbi_1 = null;
|
|
257
257
|
this.x9_1 = 2;
|
|
258
258
|
continue $sm;
|
|
259
259
|
} else {
|
|
260
260
|
this.x9_1 = 1;
|
|
261
|
-
suspendResult = this.
|
|
261
|
+
suspendResult = this.ebi_1.t4h(this);
|
|
262
262
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
263
263
|
return suspendResult;
|
|
264
264
|
}
|
|
@@ -267,18 +267,18 @@
|
|
|
267
267
|
|
|
268
268
|
case 1:
|
|
269
269
|
var tmp_0 = this;
|
|
270
|
-
tmp_0.
|
|
270
|
+
tmp_0.fbi_1 = Unit_instance;
|
|
271
271
|
this.x9_1 = 2;
|
|
272
272
|
continue $sm;
|
|
273
273
|
case 2:
|
|
274
|
-
var tmp1_safe_receiver = this.
|
|
274
|
+
var tmp1_safe_receiver = this.cbi_1.pbh_1.kotlinx$atomicfu$value;
|
|
275
275
|
if (tmp1_safe_receiver == null)
|
|
276
276
|
null;
|
|
277
277
|
else {
|
|
278
278
|
cancel(tmp1_safe_receiver);
|
|
279
279
|
}
|
|
280
280
|
|
|
281
|
-
checkChannels(this.
|
|
281
|
+
checkChannels(this.cbi_1);
|
|
282
282
|
return Unit_instance;
|
|
283
283
|
case 3:
|
|
284
284
|
throw this.aa_1;
|
|
@@ -295,8 +295,8 @@
|
|
|
295
295
|
while (true);
|
|
296
296
|
};
|
|
297
297
|
protoOf(SocketBase$close$slambda).y2q = function ($this$launch, completion) {
|
|
298
|
-
var i = new SocketBase$close$slambda(this.
|
|
299
|
-
i.
|
|
298
|
+
var i = new SocketBase$close$slambda(this.cbi_1, completion);
|
|
299
|
+
i.dbi_1 = $this$launch;
|
|
300
300
|
return i;
|
|
301
301
|
};
|
|
302
302
|
function SocketBase$close$slambda_0(this$0, resultContinuation) {
|
|
@@ -309,75 +309,75 @@
|
|
|
309
309
|
}
|
|
310
310
|
function SocketBase(parent) {
|
|
311
311
|
SelectableBase.call(this);
|
|
312
|
-
this.
|
|
313
|
-
this.
|
|
314
|
-
this.
|
|
315
|
-
this.
|
|
312
|
+
this.mbh_1 = atomic$boolean$1(false);
|
|
313
|
+
this.nbh_1 = atomic$boolean$1(false);
|
|
314
|
+
this.obh_1 = atomic$ref$1(null);
|
|
315
|
+
this.pbh_1 = atomic$ref$1(null);
|
|
316
316
|
var tmp = this;
|
|
317
|
-
tmp.
|
|
318
|
-
this.
|
|
317
|
+
tmp.qbh_1 = SocketBase$channelCompletionHandler$lambda(this);
|
|
318
|
+
this.rbh_1 = Job(parent.ka(Key_instance));
|
|
319
319
|
}
|
|
320
|
-
protoOf(SocketBase).
|
|
321
|
-
return this.
|
|
320
|
+
protoOf(SocketBase).tbh = function () {
|
|
321
|
+
return this.rbh_1;
|
|
322
322
|
};
|
|
323
323
|
protoOf(SocketBase).z1v = function () {
|
|
324
|
-
return this.
|
|
324
|
+
return this.tbh();
|
|
325
325
|
};
|
|
326
326
|
protoOf(SocketBase).y1y = function () {
|
|
327
327
|
this.u4();
|
|
328
328
|
};
|
|
329
329
|
protoOf(SocketBase).u4 = function () {
|
|
330
|
-
if (!this.
|
|
330
|
+
if (!this.mbh_1.atomicfu$compareAndSet(false, true))
|
|
331
331
|
return Unit_instance;
|
|
332
332
|
var tmp = new CoroutineName('socket-close');
|
|
333
333
|
launch(this, tmp, VOID, SocketBase$close$slambda_0(this, null));
|
|
334
334
|
};
|
|
335
|
-
protoOf(SocketBase).
|
|
335
|
+
protoOf(SocketBase).gbi = function (channel) {
|
|
336
336
|
// Inline function 'io.ktor.network.sockets.SocketBase.attachFor' call
|
|
337
|
-
var ref = this.
|
|
338
|
-
if (this.
|
|
337
|
+
var ref = this.pbh_1;
|
|
338
|
+
if (this.mbh_1.kotlinx$atomicfu$value) {
|
|
339
339
|
var e = IOException_init_$Create$('Socket closed');
|
|
340
340
|
close(channel, e);
|
|
341
341
|
throw e;
|
|
342
342
|
}
|
|
343
|
-
var j = this.
|
|
343
|
+
var j = this.hbi(channel);
|
|
344
344
|
if (!ref.atomicfu$compareAndSet(null, j)) {
|
|
345
345
|
var e_0 = IllegalStateException_init_$Create$('reading' + ' channel has already been set');
|
|
346
346
|
cancel(j);
|
|
347
347
|
throw e_0;
|
|
348
348
|
}
|
|
349
|
-
if (this.
|
|
349
|
+
if (this.mbh_1.kotlinx$atomicfu$value) {
|
|
350
350
|
var e_1 = IOException_init_$Create$('Socket closed');
|
|
351
351
|
cancel(j);
|
|
352
352
|
close(channel, e_1);
|
|
353
353
|
throw e_1;
|
|
354
354
|
}
|
|
355
355
|
attachJob(channel, j);
|
|
356
|
-
invokeOnCompletion(j, this.
|
|
356
|
+
invokeOnCompletion(j, this.qbh_1);
|
|
357
357
|
return j;
|
|
358
358
|
};
|
|
359
|
-
protoOf(SocketBase).
|
|
359
|
+
protoOf(SocketBase).ibi = function (channel) {
|
|
360
360
|
// Inline function 'io.ktor.network.sockets.SocketBase.attachFor' call
|
|
361
|
-
var ref = this.
|
|
362
|
-
if (this.
|
|
361
|
+
var ref = this.obh_1;
|
|
362
|
+
if (this.mbh_1.kotlinx$atomicfu$value) {
|
|
363
363
|
var e = IOException_init_$Create$('Socket closed');
|
|
364
364
|
close(channel, e);
|
|
365
365
|
throw e;
|
|
366
366
|
}
|
|
367
|
-
var j = this.
|
|
367
|
+
var j = this.jbi(channel);
|
|
368
368
|
if (!ref.atomicfu$compareAndSet(null, j)) {
|
|
369
369
|
var e_0 = IllegalStateException_init_$Create$('writing' + ' channel has already been set');
|
|
370
370
|
cancel(j);
|
|
371
371
|
throw e_0;
|
|
372
372
|
}
|
|
373
|
-
if (this.
|
|
373
|
+
if (this.mbh_1.kotlinx$atomicfu$value) {
|
|
374
374
|
var e_1 = IOException_init_$Create$('Socket closed');
|
|
375
375
|
cancel(j);
|
|
376
376
|
close(channel, e_1);
|
|
377
377
|
throw e_1;
|
|
378
378
|
}
|
|
379
379
|
attachJob(channel, j);
|
|
380
|
-
invokeOnCompletion(j, this.
|
|
380
|
+
invokeOnCompletion(j, this.qbh_1);
|
|
381
381
|
return j;
|
|
382
382
|
};
|
|
383
383
|
function GeneralSocketOptions(customOptions) {
|
|
@@ -385,23 +385,23 @@
|
|
|
385
385
|
}
|
|
386
386
|
function AcceptorOptions(customOptions) {
|
|
387
387
|
SocketOptions.call(this, customOptions);
|
|
388
|
-
this.
|
|
388
|
+
this.pbi_1 = 511;
|
|
389
389
|
}
|
|
390
390
|
function PeerSocketOptions(customOptions) {
|
|
391
391
|
SocketOptions.call(this, customOptions);
|
|
392
|
-
this.
|
|
393
|
-
this.
|
|
392
|
+
this.ubi_1 = -1;
|
|
393
|
+
this.vbi_1 = -1;
|
|
394
394
|
}
|
|
395
|
-
protoOf(PeerSocketOptions).
|
|
396
|
-
protoOf(SocketOptions).
|
|
395
|
+
protoOf(PeerSocketOptions).kbi = function (from) {
|
|
396
|
+
protoOf(SocketOptions).kbi.call(this, from);
|
|
397
397
|
if (from instanceof PeerSocketOptions) {
|
|
398
|
-
this.
|
|
399
|
-
this.
|
|
398
|
+
this.ubi_1 = from.ubi_1;
|
|
399
|
+
this.vbi_1 = from.vbi_1;
|
|
400
400
|
}
|
|
401
401
|
};
|
|
402
402
|
function Companion() {
|
|
403
403
|
}
|
|
404
|
-
protoOf(Companion).
|
|
404
|
+
protoOf(Companion).lbh = function () {
|
|
405
405
|
return new GeneralSocketOptions(HashMap_init_$Create$());
|
|
406
406
|
};
|
|
407
407
|
var Companion_instance_0;
|
|
@@ -409,39 +409,39 @@
|
|
|
409
409
|
return Companion_instance_0;
|
|
410
410
|
}
|
|
411
411
|
function SocketOptions(customOptions) {
|
|
412
|
-
this.
|
|
413
|
-
this.
|
|
414
|
-
this.
|
|
415
|
-
this.
|
|
416
|
-
}
|
|
417
|
-
protoOf(SocketOptions).
|
|
418
|
-
this.
|
|
419
|
-
this.
|
|
420
|
-
this.
|
|
412
|
+
this.gbh_1 = customOptions;
|
|
413
|
+
this.hbh_1 = Companion_getInstance_0().xbi_1;
|
|
414
|
+
this.ibh_1 = false;
|
|
415
|
+
this.jbh_1 = false;
|
|
416
|
+
}
|
|
417
|
+
protoOf(SocketOptions).kbi = function (from) {
|
|
418
|
+
this.hbh_1 = from.hbh_1;
|
|
419
|
+
this.ibh_1 = from.ibh_1;
|
|
420
|
+
this.jbh_1 = from.jbh_1;
|
|
421
421
|
};
|
|
422
|
-
protoOf(SocketOptions).
|
|
422
|
+
protoOf(SocketOptions).kbh = function () {
|
|
423
423
|
// Inline function 'kotlin.apply' call
|
|
424
|
-
var this_0 = new PeerSocketOptions(HashMap_init_$Create$_0(this.
|
|
425
|
-
this.
|
|
424
|
+
var this_0 = new PeerSocketOptions(HashMap_init_$Create$_0(this.gbh_1));
|
|
425
|
+
this.kbi(this);
|
|
426
426
|
return this_0;
|
|
427
427
|
};
|
|
428
|
-
protoOf(SocketOptions).
|
|
428
|
+
protoOf(SocketOptions).wbi = function () {
|
|
429
429
|
// Inline function 'kotlin.apply' call
|
|
430
|
-
var this_0 = new AcceptorOptions(HashMap_init_$Create$_0(this.
|
|
431
|
-
this_0.
|
|
430
|
+
var this_0 = new AcceptorOptions(HashMap_init_$Create$_0(this.gbh_1));
|
|
431
|
+
this_0.kbi(this);
|
|
432
432
|
return this_0;
|
|
433
433
|
};
|
|
434
434
|
function openReadChannel(_this__u8e3s4) {
|
|
435
435
|
// Inline function 'kotlin.also' call
|
|
436
436
|
var this_0 = new ByteChannel(false);
|
|
437
|
-
_this__u8e3s4.
|
|
437
|
+
_this__u8e3s4.gbi(this_0);
|
|
438
438
|
return this_0;
|
|
439
439
|
}
|
|
440
440
|
function openWriteChannel(_this__u8e3s4, autoFlush) {
|
|
441
441
|
autoFlush = autoFlush === VOID ? false : autoFlush;
|
|
442
442
|
// Inline function 'kotlin.also' call
|
|
443
443
|
var this_0 = new ByteChannel(autoFlush);
|
|
444
|
-
_this__u8e3s4.
|
|
444
|
+
_this__u8e3s4.ibi(this_0);
|
|
445
445
|
return this_0;
|
|
446
446
|
}
|
|
447
447
|
function awaitClosed(_this__u8e3s4, $completion) {
|
|
@@ -454,7 +454,7 @@
|
|
|
454
454
|
}
|
|
455
455
|
function $awaitClosedCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
456
456
|
CoroutineImpl.call(this, resultContinuation);
|
|
457
|
-
this.
|
|
457
|
+
this.kbj_1 = _this__u8e3s4;
|
|
458
458
|
}
|
|
459
459
|
protoOf($awaitClosedCOROUTINE$).fa = function () {
|
|
460
460
|
var suspendResult = this.z9_1;
|
|
@@ -465,15 +465,15 @@
|
|
|
465
465
|
case 0:
|
|
466
466
|
this.y9_1 = 2;
|
|
467
467
|
this.x9_1 = 1;
|
|
468
|
-
suspendResult = this.
|
|
468
|
+
suspendResult = this.kbj_1.tbh().g1x(this);
|
|
469
469
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
470
470
|
return suspendResult;
|
|
471
471
|
}
|
|
472
472
|
|
|
473
473
|
continue $sm;
|
|
474
474
|
case 1:
|
|
475
|
-
if (this.
|
|
476
|
-
throw this.
|
|
475
|
+
if (this.kbj_1.tbh().w1w())
|
|
476
|
+
throw this.kbj_1.tbh().z1w();
|
|
477
477
|
return Unit_instance;
|
|
478
478
|
case 2:
|
|
479
479
|
throw this.aa_1;
|
|
@@ -493,19 +493,19 @@
|
|
|
493
493
|
return Unit_instance;
|
|
494
494
|
}
|
|
495
495
|
function TcpSocketBuilder(selector, options) {
|
|
496
|
-
this.
|
|
497
|
-
this.
|
|
496
|
+
this.lbj_1 = selector;
|
|
497
|
+
this.mbj_1 = options;
|
|
498
498
|
}
|
|
499
|
-
protoOf(TcpSocketBuilder).
|
|
500
|
-
return this.
|
|
499
|
+
protoOf(TcpSocketBuilder).nbj = function (hostname, port, configure, $completion) {
|
|
500
|
+
return this.obj(new InetSocketAddress(hostname, port), configure, $completion);
|
|
501
501
|
};
|
|
502
|
-
protoOf(TcpSocketBuilder).
|
|
502
|
+
protoOf(TcpSocketBuilder).obj = function (localAddress, configure, $completion) {
|
|
503
503
|
// Inline function 'kotlin.apply' call
|
|
504
|
-
var this_0 = this.
|
|
504
|
+
var this_0 = this.mbj_1.wbi();
|
|
505
505
|
configure(this_0);
|
|
506
|
-
return tcpBind(this.
|
|
506
|
+
return tcpBind(this.lbj_1, localAddress, this_0, $completion);
|
|
507
507
|
};
|
|
508
|
-
protoOf(TcpSocketBuilder).
|
|
508
|
+
protoOf(TcpSocketBuilder).pbj = function (localAddress, configure, $completion, $super) {
|
|
509
509
|
localAddress = localAddress === VOID ? null : localAddress;
|
|
510
510
|
var tmp;
|
|
511
511
|
if (configure === VOID) {
|
|
@@ -514,18 +514,18 @@
|
|
|
514
514
|
tmp = configure;
|
|
515
515
|
}
|
|
516
516
|
configure = tmp;
|
|
517
|
-
return $super === VOID ? this.
|
|
517
|
+
return $super === VOID ? this.obj(localAddress, configure, $completion) : $super.obj.call(this, localAddress, configure, $completion);
|
|
518
518
|
};
|
|
519
519
|
function _TypeOfService___init__impl__yslya3(value) {
|
|
520
520
|
return value;
|
|
521
521
|
}
|
|
522
522
|
function Companion_0() {
|
|
523
523
|
Companion_instance_1 = this;
|
|
524
|
-
this.
|
|
525
|
-
this.
|
|
526
|
-
this.
|
|
527
|
-
this.
|
|
528
|
-
this.
|
|
524
|
+
this.xbi_1 = _TypeOfService___init__impl__yslya3(_UByte___init__impl__g9hnc4(0));
|
|
525
|
+
this.ybi_1 = _TypeOfService___init__impl__yslya3(_UByte___init__impl__g9hnc4(2));
|
|
526
|
+
this.zbi_1 = _TypeOfService___init__impl__yslya3(_UByte___init__impl__g9hnc4(4));
|
|
527
|
+
this.abj_1 = _TypeOfService___init__impl__yslya3(_UByte___init__impl__g9hnc4(8));
|
|
528
|
+
this.bbj_1 = _TypeOfService___init__impl__yslya3(_UByte___init__impl__g9hnc4(16));
|
|
529
529
|
}
|
|
530
530
|
var Companion_instance_1;
|
|
531
531
|
function Companion_getInstance_0() {
|
|
@@ -604,17 +604,17 @@
|
|
|
604
604
|
}
|
|
605
605
|
function ServerSocketContext$initiate$lambda(this$0) {
|
|
606
606
|
return function (it) {
|
|
607
|
-
this$0.
|
|
608
|
-
this$0.
|
|
609
|
-
this$0.
|
|
607
|
+
this$0.qbj_1.close();
|
|
608
|
+
this$0.tbj_1.k1x();
|
|
609
|
+
this$0.sbj_1.y2i();
|
|
610
610
|
return Unit_instance;
|
|
611
611
|
};
|
|
612
612
|
}
|
|
613
613
|
function ServerSocketContext$initiate$lambda_0(this$0) {
|
|
614
614
|
return function (socket) {
|
|
615
|
-
var context = new SocketContext(socket, this$0.
|
|
616
|
-
context.
|
|
617
|
-
this$0.
|
|
615
|
+
var context = new SocketContext(socket, this$0.rbj_1, this$0.tbj_1);
|
|
616
|
+
context.ybj(null);
|
|
617
|
+
this$0.sbj_1.n2i(context.zbj());
|
|
618
618
|
return Unit_instance;
|
|
619
619
|
};
|
|
620
620
|
}
|
|
@@ -630,7 +630,7 @@
|
|
|
630
630
|
tmp0.ia(tmp$ret$0);
|
|
631
631
|
tmp = Unit_instance;
|
|
632
632
|
} else {
|
|
633
|
-
cancel_0(get_job(this$0.
|
|
633
|
+
cancel_0(get_job(this$0.tbj_1), 'Server closed');
|
|
634
634
|
tmp = Unit_instance;
|
|
635
635
|
}
|
|
636
636
|
return Unit_instance;
|
|
@@ -648,7 +648,7 @@
|
|
|
648
648
|
tmp0.ia(tmp$ret$0);
|
|
649
649
|
tmp = Unit_instance;
|
|
650
650
|
} else {
|
|
651
|
-
cancel_0(get_job(this$0.
|
|
651
|
+
cancel_0(get_job(this$0.tbj_1), 'Server failed', toThrowable(error));
|
|
652
652
|
tmp = Unit_instance;
|
|
653
653
|
}
|
|
654
654
|
return Unit_instance;
|
|
@@ -659,67 +659,67 @@
|
|
|
659
659
|
var tmp0 = $cont;
|
|
660
660
|
// Inline function 'kotlin.coroutines.resume' call
|
|
661
661
|
// Inline function 'kotlin.Companion.success' call
|
|
662
|
-
var value = new ServerSocketImpl(toSocketAddress(ensureNotNull(this$0.
|
|
662
|
+
var value = new ServerSocketImpl(toSocketAddress(ensureNotNull(this$0.qbj_1.address())), this$0.tbj_1, this$0.sbj_1, this$0.qbj_1);
|
|
663
663
|
var tmp$ret$0 = _Result___init__impl__xyqfz8(value);
|
|
664
664
|
tmp0.ia(tmp$ret$0);
|
|
665
665
|
return Unit_instance;
|
|
666
666
|
};
|
|
667
667
|
}
|
|
668
668
|
function ServerSocketContext(server, localAddress, parentContext) {
|
|
669
|
-
this.
|
|
670
|
-
this.
|
|
671
|
-
this.
|
|
672
|
-
this.
|
|
669
|
+
this.qbj_1 = server;
|
|
670
|
+
this.rbj_1 = localAddress;
|
|
671
|
+
this.sbj_1 = Channel(2147483647);
|
|
672
|
+
this.tbj_1 = SupervisorJob(parentContext);
|
|
673
673
|
}
|
|
674
|
-
protoOf(ServerSocketContext).
|
|
674
|
+
protoOf(ServerSocketContext).abk = function (cont) {
|
|
675
675
|
cont.c22(ServerSocketContext$initiate$lambda(this));
|
|
676
|
-
onConnection(this.
|
|
677
|
-
onClose_0(this.
|
|
678
|
-
onError_0(this.
|
|
679
|
-
onListening(this.
|
|
680
|
-
this.
|
|
676
|
+
onConnection(this.qbj_1, ServerSocketContext$initiate$lambda_0(this));
|
|
677
|
+
onClose_0(this.qbj_1, ServerSocketContext$initiate$lambda_1(cont, this));
|
|
678
|
+
onError_0(this.qbj_1, ServerSocketContext$initiate$lambda_2(cont, this));
|
|
679
|
+
onListening(this.qbj_1, ServerSocketContext$initiate$lambda_3(cont, this));
|
|
680
|
+
this.qbj_1.listen(ServerListenOptions_0(this.rbj_1));
|
|
681
681
|
};
|
|
682
682
|
function ServerSocketImpl$lambda(this$0) {
|
|
683
683
|
return function (it) {
|
|
684
|
-
this$0.
|
|
685
|
-
this$0.
|
|
684
|
+
this$0.ebk_1.close();
|
|
685
|
+
this$0.dbk_1.y2i();
|
|
686
686
|
return Unit_instance;
|
|
687
687
|
};
|
|
688
688
|
}
|
|
689
689
|
function ServerSocketImpl(localAddress, socketContext, incoming, server) {
|
|
690
|
-
this.
|
|
691
|
-
this.
|
|
692
|
-
this.
|
|
693
|
-
this.
|
|
694
|
-
this.
|
|
695
|
-
}
|
|
696
|
-
protoOf(ServerSocketImpl).
|
|
697
|
-
return this.
|
|
690
|
+
this.bbk_1 = localAddress;
|
|
691
|
+
this.cbk_1 = socketContext;
|
|
692
|
+
this.dbk_1 = incoming;
|
|
693
|
+
this.ebk_1 = server;
|
|
694
|
+
this.cbk_1.c1x(ServerSocketImpl$lambda(this));
|
|
695
|
+
}
|
|
696
|
+
protoOf(ServerSocketImpl).ob3 = function () {
|
|
697
|
+
return this.bbk_1;
|
|
698
698
|
};
|
|
699
|
-
protoOf(ServerSocketImpl).
|
|
700
|
-
return this.
|
|
699
|
+
protoOf(ServerSocketImpl).tbh = function () {
|
|
700
|
+
return this.cbk_1;
|
|
701
701
|
};
|
|
702
|
-
protoOf(ServerSocketImpl).
|
|
703
|
-
return this.
|
|
702
|
+
protoOf(ServerSocketImpl).fbk = function ($completion) {
|
|
703
|
+
return this.dbk_1.q2i($completion);
|
|
704
704
|
};
|
|
705
|
-
protoOf(ServerSocketImpl).
|
|
706
|
-
return this.
|
|
705
|
+
protoOf(ServerSocketImpl).gbk = function ($completion) {
|
|
706
|
+
return this.fbk($completion);
|
|
707
707
|
};
|
|
708
708
|
protoOf(ServerSocketImpl).u4 = function () {
|
|
709
|
-
this.
|
|
710
|
-
this.
|
|
709
|
+
this.dbk_1.u2i(IOException_init_$Create$('Server socket closed'));
|
|
710
|
+
this.cbk_1.y24();
|
|
711
711
|
};
|
|
712
712
|
function SocketContext$initiate$lambda(this$0) {
|
|
713
713
|
return function (it) {
|
|
714
|
-
this$0.
|
|
715
|
-
this$0.
|
|
716
|
-
this$0.
|
|
714
|
+
this$0.ubj_1.destroy(it == null ? null : toJsError(it));
|
|
715
|
+
this$0.xbj_1.k1x();
|
|
716
|
+
this$0.wbj_1.y2i();
|
|
717
717
|
return Unit_instance;
|
|
718
718
|
};
|
|
719
719
|
}
|
|
720
720
|
function SocketContext$initiate$lambda_0(this$0) {
|
|
721
721
|
return function (it) {
|
|
722
|
-
this$0.
|
|
722
|
+
this$0.ubj_1.destroy(it == null ? null : toJsError(it));
|
|
723
723
|
return Unit_instance;
|
|
724
724
|
};
|
|
725
725
|
}
|
|
@@ -736,7 +736,7 @@
|
|
|
736
736
|
tmp0.ia(tmp$ret$0);
|
|
737
737
|
tmp = Unit_instance;
|
|
738
738
|
} else {
|
|
739
|
-
cancel_0(get_job(this$0.
|
|
739
|
+
cancel_0(get_job(this$0.xbj_1), 'Socket error', toThrowable(error));
|
|
740
740
|
tmp = Unit_instance;
|
|
741
741
|
}
|
|
742
742
|
return Unit_instance;
|
|
@@ -755,7 +755,7 @@
|
|
|
755
755
|
tmp0.ia(tmp$ret$0);
|
|
756
756
|
tmp = Unit_instance;
|
|
757
757
|
} else {
|
|
758
|
-
cancel_0(get_job(this$0.
|
|
758
|
+
cancel_0(get_job(this$0.xbj_1), 'Socket timeout', SocketTimeoutException_init_$Create$('timeout'));
|
|
759
759
|
tmp = Unit_instance;
|
|
760
760
|
}
|
|
761
761
|
return Unit_instance;
|
|
@@ -763,19 +763,19 @@
|
|
|
763
763
|
}
|
|
764
764
|
function SocketContext$initiate$lambda_3(this$0) {
|
|
765
765
|
return function () {
|
|
766
|
-
this$0.
|
|
766
|
+
this$0.wbj_1.w2i();
|
|
767
767
|
return Unit_instance;
|
|
768
768
|
};
|
|
769
769
|
}
|
|
770
770
|
function SocketContext$initiate$lambda_4(this$0) {
|
|
771
771
|
return function (it) {
|
|
772
|
-
cancel_0(get_job(this$0.
|
|
772
|
+
cancel_0(get_job(this$0.xbj_1), 'Socket closed');
|
|
773
773
|
return Unit_instance;
|
|
774
774
|
};
|
|
775
775
|
}
|
|
776
776
|
function SocketContext$initiate$lambda_5(this$0) {
|
|
777
777
|
return function (data) {
|
|
778
|
-
this$0.
|
|
778
|
+
this$0.wbj_1.n2i(data);
|
|
779
779
|
return Unit_instance;
|
|
780
780
|
};
|
|
781
781
|
}
|
|
@@ -784,49 +784,49 @@
|
|
|
784
784
|
var tmp0 = $connectCont;
|
|
785
785
|
// Inline function 'kotlin.coroutines.resume' call
|
|
786
786
|
// Inline function 'kotlin.Companion.success' call
|
|
787
|
-
var value = this$0.
|
|
787
|
+
var value = this$0.zbj();
|
|
788
788
|
var tmp$ret$0 = _Result___init__impl__xyqfz8(value);
|
|
789
789
|
tmp0.ia(tmp$ret$0);
|
|
790
790
|
return Unit_instance;
|
|
791
791
|
};
|
|
792
792
|
}
|
|
793
793
|
function SocketContext(socket, address, parentContext) {
|
|
794
|
-
this.
|
|
795
|
-
this.
|
|
796
|
-
this.
|
|
797
|
-
this.
|
|
794
|
+
this.ubj_1 = socket;
|
|
795
|
+
this.vbj_1 = address;
|
|
796
|
+
this.wbj_1 = Channel(2147483647);
|
|
797
|
+
this.xbj_1 = Job(parentContext);
|
|
798
798
|
}
|
|
799
|
-
protoOf(SocketContext).
|
|
799
|
+
protoOf(SocketContext).ybj = function (connectCont) {
|
|
800
800
|
if (connectCont == null)
|
|
801
801
|
null;
|
|
802
802
|
else {
|
|
803
803
|
connectCont.c22(SocketContext$initiate$lambda(this));
|
|
804
804
|
}
|
|
805
|
-
this.
|
|
806
|
-
onError(this.
|
|
807
|
-
onTimeout(this.
|
|
808
|
-
onEnd(this.
|
|
809
|
-
onClose(this.
|
|
810
|
-
onData(this.
|
|
805
|
+
this.xbj_1.c1x(SocketContext$initiate$lambda_0(this));
|
|
806
|
+
onError(this.ubj_1, SocketContext$initiate$lambda_1(connectCont, this));
|
|
807
|
+
onTimeout(this.ubj_1, SocketContext$initiate$lambda_2(connectCont, this));
|
|
808
|
+
onEnd(this.ubj_1, SocketContext$initiate$lambda_3(this));
|
|
809
|
+
onClose(this.ubj_1, SocketContext$initiate$lambda_4(this));
|
|
810
|
+
onData(this.ubj_1, SocketContext$initiate$lambda_5(this));
|
|
811
811
|
if (!(connectCont == null)) {
|
|
812
|
-
onConnect(this.
|
|
812
|
+
onConnect(this.ubj_1, SocketContext$initiate$lambda_6(connectCont, this));
|
|
813
813
|
}
|
|
814
814
|
};
|
|
815
|
-
protoOf(SocketContext).
|
|
815
|
+
protoOf(SocketContext).zbj = function () {
|
|
816
816
|
var tmp;
|
|
817
|
-
if (this.
|
|
818
|
-
tmp = this.
|
|
817
|
+
if (this.vbj_1 instanceof UnixSocketAddress) {
|
|
818
|
+
tmp = this.vbj_1;
|
|
819
819
|
} else {
|
|
820
|
-
tmp = new InetSocketAddress(this.
|
|
820
|
+
tmp = new InetSocketAddress(this.ubj_1.localAddress, this.ubj_1.localPort);
|
|
821
821
|
}
|
|
822
822
|
var tmp_0 = tmp;
|
|
823
823
|
var tmp_1;
|
|
824
|
-
if (this.
|
|
825
|
-
tmp_1 = this.
|
|
824
|
+
if (this.vbj_1 instanceof UnixSocketAddress) {
|
|
825
|
+
tmp_1 = this.vbj_1;
|
|
826
826
|
} else {
|
|
827
|
-
tmp_1 = new InetSocketAddress(this.
|
|
827
|
+
tmp_1 = new InetSocketAddress(this.ubj_1.remoteAddress, this.ubj_1.remotePort);
|
|
828
828
|
}
|
|
829
|
-
return new SocketImpl(tmp_0, tmp_1, this.
|
|
829
|
+
return new SocketImpl(tmp_0, tmp_1, this.xbj_1, this.wbj_1, this.ubj_1);
|
|
830
830
|
};
|
|
831
831
|
function SocketImpl$attachForWritingImpl$slambda$lambda($endCompleted) {
|
|
832
832
|
return function () {
|
|
@@ -835,18 +835,18 @@
|
|
|
835
835
|
};
|
|
836
836
|
}
|
|
837
837
|
function SocketImpl$attachForReadingImpl$slambda(this$0, $channel, resultContinuation) {
|
|
838
|
-
this.
|
|
839
|
-
this.
|
|
838
|
+
this.pbk_1 = this$0;
|
|
839
|
+
this.qbk_1 = $channel;
|
|
840
840
|
CoroutineImpl.call(this, resultContinuation);
|
|
841
841
|
}
|
|
842
|
-
protoOf(SocketImpl$attachForReadingImpl$slambda).
|
|
843
|
-
var tmp = this.
|
|
842
|
+
protoOf(SocketImpl$attachForReadingImpl$slambda).d5w = function ($this$writer, $completion) {
|
|
843
|
+
var tmp = this.e5w($this$writer, $completion);
|
|
844
844
|
tmp.z9_1 = Unit_instance;
|
|
845
845
|
tmp.aa_1 = null;
|
|
846
846
|
return tmp.fa();
|
|
847
847
|
};
|
|
848
848
|
protoOf(SocketImpl$attachForReadingImpl$slambda).ra = function (p1, $completion) {
|
|
849
|
-
return this.
|
|
849
|
+
return this.d5w(p1 instanceof WriterScope ? p1 : THROW_CCE(), $completion);
|
|
850
850
|
};
|
|
851
851
|
protoOf(SocketImpl$attachForReadingImpl$slambda).fa = function () {
|
|
852
852
|
var suspendResult = this.z9_1;
|
|
@@ -857,15 +857,15 @@
|
|
|
857
857
|
case 0:
|
|
858
858
|
this.y9_1 = 12;
|
|
859
859
|
var tmp_0 = this;
|
|
860
|
-
tmp_0.
|
|
861
|
-
this.
|
|
860
|
+
tmp_0.sbk_1 = this.pbk_1.obl_1;
|
|
861
|
+
this.tbk_1 = this.sbk_1;
|
|
862
862
|
var tmp_1 = this;
|
|
863
|
-
tmp_1.
|
|
863
|
+
tmp_1.ubk_1 = this.tbk_1;
|
|
864
864
|
this.x9_1 = 1;
|
|
865
865
|
continue $sm;
|
|
866
866
|
case 1:
|
|
867
|
-
this.
|
|
868
|
-
this.
|
|
867
|
+
this.wbk_1 = this.ubk_1;
|
|
868
|
+
this.xbk_1 = null;
|
|
869
869
|
this.x9_1 = 2;
|
|
870
870
|
continue $sm;
|
|
871
871
|
case 2:
|
|
@@ -875,14 +875,14 @@
|
|
|
875
875
|
this.y9_1 = 11;
|
|
876
876
|
this.y9_1 = 10;
|
|
877
877
|
var tmp_2 = this;
|
|
878
|
-
tmp_2.
|
|
879
|
-
this.
|
|
880
|
-
this.
|
|
878
|
+
tmp_2.zbk_1 = this.wbk_1;
|
|
879
|
+
this.abl_1 = this.zbk_1;
|
|
880
|
+
this.bbl_1 = this.abl_1.p();
|
|
881
881
|
this.x9_1 = 4;
|
|
882
882
|
continue $sm;
|
|
883
883
|
case 4:
|
|
884
884
|
this.x9_1 = 5;
|
|
885
|
-
suspendResult = this.
|
|
885
|
+
suspendResult = this.bbl_1.t2e(this);
|
|
886
886
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
887
887
|
return suspendResult;
|
|
888
888
|
}
|
|
@@ -894,12 +894,12 @@
|
|
|
894
894
|
continue $sm;
|
|
895
895
|
}
|
|
896
896
|
|
|
897
|
-
this.
|
|
897
|
+
this.cbl_1 = this.bbl_1.r();
|
|
898
898
|
var tmp_3 = this;
|
|
899
|
-
tmp_3.
|
|
900
|
-
this.
|
|
899
|
+
tmp_3.dbl_1 = this.cbl_1;
|
|
900
|
+
this.ebl_1 = this.dbl_1;
|
|
901
901
|
this.x9_1 = 6;
|
|
902
|
-
suspendResult = writeByteArray(this.
|
|
902
|
+
suspendResult = writeByteArray(this.qbk_1, toByteArray(this.ebl_1), this);
|
|
903
903
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
904
904
|
return suspendResult;
|
|
905
905
|
}
|
|
@@ -907,7 +907,7 @@
|
|
|
907
907
|
continue $sm;
|
|
908
908
|
case 6:
|
|
909
909
|
this.x9_1 = 7;
|
|
910
|
-
suspendResult = this.
|
|
910
|
+
suspendResult = this.qbk_1.h4h(this);
|
|
911
911
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
912
912
|
return suspendResult;
|
|
913
913
|
}
|
|
@@ -918,7 +918,7 @@
|
|
|
918
918
|
continue $sm;
|
|
919
919
|
case 8:
|
|
920
920
|
var tmp_4 = this;
|
|
921
|
-
tmp_4.
|
|
921
|
+
tmp_4.ybk_1 = Unit_instance;
|
|
922
922
|
this.y9_1 = 12;
|
|
923
923
|
this.x9_1 = 9;
|
|
924
924
|
var tmp_5 = this;
|
|
@@ -926,8 +926,8 @@
|
|
|
926
926
|
case 9:
|
|
927
927
|
this.y9_1 = 12;
|
|
928
928
|
var tmp_6 = this;
|
|
929
|
-
cancelConsumed(this.
|
|
930
|
-
tmp_6.
|
|
929
|
+
cancelConsumed(this.wbk_1, this.xbk_1);
|
|
930
|
+
tmp_6.vbk_1 = Unit_instance;
|
|
931
931
|
this.x9_1 = 14;
|
|
932
932
|
continue $sm;
|
|
933
933
|
case 10:
|
|
@@ -936,7 +936,7 @@
|
|
|
936
936
|
if (tmp_7 instanceof Error) {
|
|
937
937
|
var e = this.aa_1;
|
|
938
938
|
var tmp_8 = this;
|
|
939
|
-
this.
|
|
939
|
+
this.xbk_1 = e;
|
|
940
940
|
throw e;
|
|
941
941
|
} else {
|
|
942
942
|
throw this.aa_1;
|
|
@@ -945,13 +945,13 @@
|
|
|
945
945
|
case 11:
|
|
946
946
|
this.y9_1 = 12;
|
|
947
947
|
var t = this.aa_1;
|
|
948
|
-
cancelConsumed(this.
|
|
948
|
+
cancelConsumed(this.wbk_1, this.xbk_1);
|
|
949
949
|
throw t;
|
|
950
950
|
case 12:
|
|
951
951
|
throw this.aa_1;
|
|
952
952
|
case 13:
|
|
953
953
|
this.y9_1 = 12;
|
|
954
|
-
cancelConsumed(this.
|
|
954
|
+
cancelConsumed(this.wbk_1, this.xbk_1);
|
|
955
955
|
if (false) {
|
|
956
956
|
this.x9_1 = 1;
|
|
957
957
|
continue $sm;
|
|
@@ -973,32 +973,32 @@
|
|
|
973
973
|
}
|
|
974
974
|
while (true);
|
|
975
975
|
};
|
|
976
|
-
protoOf(SocketImpl$attachForReadingImpl$slambda).
|
|
977
|
-
var i = new SocketImpl$attachForReadingImpl$slambda(this.
|
|
978
|
-
i.
|
|
976
|
+
protoOf(SocketImpl$attachForReadingImpl$slambda).e5w = function ($this$writer, completion) {
|
|
977
|
+
var i = new SocketImpl$attachForReadingImpl$slambda(this.pbk_1, this.qbk_1, completion);
|
|
978
|
+
i.rbk_1 = $this$writer;
|
|
979
979
|
return i;
|
|
980
980
|
};
|
|
981
981
|
function SocketImpl$attachForReadingImpl$slambda_0(this$0, $channel, resultContinuation) {
|
|
982
982
|
var i = new SocketImpl$attachForReadingImpl$slambda(this$0, $channel, resultContinuation);
|
|
983
983
|
var l = function ($this$writer, $completion) {
|
|
984
|
-
return i.
|
|
984
|
+
return i.d5w($this$writer, $completion);
|
|
985
985
|
};
|
|
986
986
|
l.$arity = 1;
|
|
987
987
|
return l;
|
|
988
988
|
}
|
|
989
989
|
function SocketImpl$attachForWritingImpl$slambda($channel, this$0, resultContinuation) {
|
|
990
|
-
this.
|
|
991
|
-
this.
|
|
990
|
+
this.ybl_1 = $channel;
|
|
991
|
+
this.zbl_1 = this$0;
|
|
992
992
|
CoroutineImpl.call(this, resultContinuation);
|
|
993
993
|
}
|
|
994
|
-
protoOf(SocketImpl$attachForWritingImpl$slambda).
|
|
995
|
-
var tmp = this.
|
|
994
|
+
protoOf(SocketImpl$attachForWritingImpl$slambda).v5p = function ($this$reader, $completion) {
|
|
995
|
+
var tmp = this.w5p($this$reader, $completion);
|
|
996
996
|
tmp.z9_1 = Unit_instance;
|
|
997
997
|
tmp.aa_1 = null;
|
|
998
998
|
return tmp.fa();
|
|
999
999
|
};
|
|
1000
1000
|
protoOf(SocketImpl$attachForWritingImpl$slambda).ra = function (p1, $completion) {
|
|
1001
|
-
return this.
|
|
1001
|
+
return this.v5p(p1 instanceof ReaderScope ? p1 : THROW_CCE(), $completion);
|
|
1002
1002
|
};
|
|
1003
1003
|
protoOf(SocketImpl$attachForWritingImpl$slambda).fa = function () {
|
|
1004
1004
|
var suspendResult = this.z9_1;
|
|
@@ -1017,13 +1017,13 @@
|
|
|
1017
1017
|
}
|
|
1018
1018
|
|
|
1019
1019
|
var tmp_0 = this;
|
|
1020
|
-
tmp_0.
|
|
1020
|
+
tmp_0.bbm_1 = this.ybl_1;
|
|
1021
1021
|
this.x9_1 = 2;
|
|
1022
1022
|
continue $sm;
|
|
1023
1023
|
case 2:
|
|
1024
|
-
this.
|
|
1025
|
-
if (this.
|
|
1026
|
-
this.
|
|
1024
|
+
this.dbm_1 = this.bbm_1;
|
|
1025
|
+
if (this.dbm_1.q4h()) {
|
|
1026
|
+
this.cbm_1 = -1;
|
|
1027
1027
|
this.x9_1 = 7;
|
|
1028
1028
|
continue $sm;
|
|
1029
1029
|
} else {
|
|
@@ -1032,9 +1032,9 @@
|
|
|
1032
1032
|
}
|
|
1033
1033
|
|
|
1034
1034
|
case 3:
|
|
1035
|
-
if (this.
|
|
1035
|
+
if (this.dbm_1.j4h().w39()) {
|
|
1036
1036
|
this.x9_1 = 4;
|
|
1037
|
-
suspendResult = this.
|
|
1037
|
+
suspendResult = this.dbm_1.s4h(VOID, this);
|
|
1038
1038
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1039
1039
|
return suspendResult;
|
|
1040
1040
|
}
|
|
@@ -1048,8 +1048,8 @@
|
|
|
1048
1048
|
this.x9_1 = 5;
|
|
1049
1049
|
continue $sm;
|
|
1050
1050
|
case 5:
|
|
1051
|
-
if (this.
|
|
1052
|
-
this.
|
|
1051
|
+
if (this.dbm_1.q4h()) {
|
|
1052
|
+
this.cbm_1 = -1;
|
|
1053
1053
|
this.x9_1 = 7;
|
|
1054
1054
|
continue $sm;
|
|
1055
1055
|
} else {
|
|
@@ -1058,29 +1058,29 @@
|
|
|
1058
1058
|
}
|
|
1059
1059
|
|
|
1060
1060
|
case 6:
|
|
1061
|
-
var buffer = this.
|
|
1062
|
-
if (!!buffer.
|
|
1061
|
+
var buffer = this.dbm_1.j4h().v39();
|
|
1062
|
+
if (!!buffer.w39()) {
|
|
1063
1063
|
var message = 'Buffer is empty';
|
|
1064
1064
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1065
1065
|
}
|
|
1066
1066
|
|
|
1067
|
-
var head = ensureNotNull(buffer.
|
|
1068
|
-
var tmp0 = head.
|
|
1069
|
-
var tmp2 = head.
|
|
1067
|
+
var head = ensureNotNull(buffer.s39_1);
|
|
1068
|
+
var tmp0 = head.o3c(true);
|
|
1069
|
+
var tmp2 = head.b3a_1;
|
|
1070
1070
|
var tmp_1 = this;
|
|
1071
|
-
var endIndex = head.
|
|
1072
|
-
this.
|
|
1073
|
-
tmp_1.
|
|
1074
|
-
var bytesRead = this.
|
|
1071
|
+
var endIndex = head.c3a_1;
|
|
1072
|
+
this.zbl_1.pbl_1.write(toJsBuffer(tmp0, tmp2, endIndex));
|
|
1073
|
+
tmp_1.ebm_1 = endIndex - tmp2 | 0;
|
|
1074
|
+
var bytesRead = this.ebm_1;
|
|
1075
1075
|
if (!(bytesRead === 0)) {
|
|
1076
1076
|
if (bytesRead < 0)
|
|
1077
1077
|
throw IllegalStateException_init_$Create$('Returned negative read bytes count');
|
|
1078
1078
|
if (bytesRead > head.s())
|
|
1079
1079
|
throw IllegalStateException_init_$Create$('Returned too many bytes');
|
|
1080
|
-
buffer.
|
|
1080
|
+
buffer.t3a(toLong(bytesRead));
|
|
1081
1081
|
}
|
|
1082
1082
|
|
|
1083
|
-
this.
|
|
1083
|
+
this.cbm_1 = this.ebm_1;
|
|
1084
1084
|
if (false) {
|
|
1085
1085
|
this.x9_1 = 2;
|
|
1086
1086
|
continue $sm;
|
|
@@ -1089,12 +1089,12 @@
|
|
|
1089
1089
|
this.x9_1 = 7;
|
|
1090
1090
|
continue $sm;
|
|
1091
1091
|
case 7:
|
|
1092
|
-
this.
|
|
1093
|
-
if (this.
|
|
1094
|
-
this.
|
|
1095
|
-
this.
|
|
1092
|
+
this.fbm_1 = this.cbm_1;
|
|
1093
|
+
if (this.fbm_1 === -1) {
|
|
1094
|
+
this.gbm_1 = CompletableDeferred();
|
|
1095
|
+
this.zbl_1.pbl_1.end(SocketImpl$attachForWritingImpl$slambda$lambda(this.gbm_1));
|
|
1096
1096
|
this.x9_1 = 9;
|
|
1097
|
-
suspendResult = this.
|
|
1097
|
+
suspendResult = this.gbm_1.w21(this);
|
|
1098
1098
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1099
1099
|
return suspendResult;
|
|
1100
1100
|
}
|
|
@@ -1126,46 +1126,46 @@
|
|
|
1126
1126
|
}
|
|
1127
1127
|
while (true);
|
|
1128
1128
|
};
|
|
1129
|
-
protoOf(SocketImpl$attachForWritingImpl$slambda).
|
|
1130
|
-
var i = new SocketImpl$attachForWritingImpl$slambda(this.
|
|
1131
|
-
i.
|
|
1129
|
+
protoOf(SocketImpl$attachForWritingImpl$slambda).w5p = function ($this$reader, completion) {
|
|
1130
|
+
var i = new SocketImpl$attachForWritingImpl$slambda(this.ybl_1, this.zbl_1, completion);
|
|
1131
|
+
i.abm_1 = $this$reader;
|
|
1132
1132
|
return i;
|
|
1133
1133
|
};
|
|
1134
1134
|
function SocketImpl$attachForWritingImpl$slambda_0($channel, this$0, resultContinuation) {
|
|
1135
1135
|
var i = new SocketImpl$attachForWritingImpl$slambda($channel, this$0, resultContinuation);
|
|
1136
1136
|
var l = function ($this$reader, $completion) {
|
|
1137
|
-
return i.
|
|
1137
|
+
return i.v5p($this$reader, $completion);
|
|
1138
1138
|
};
|
|
1139
1139
|
l.$arity = 1;
|
|
1140
1140
|
return l;
|
|
1141
1141
|
}
|
|
1142
1142
|
function SocketImpl(localAddress, remoteAddress, coroutineContext, incoming, socket) {
|
|
1143
1143
|
SocketBase.call(this, coroutineContext);
|
|
1144
|
-
this.
|
|
1145
|
-
this.
|
|
1146
|
-
this.
|
|
1147
|
-
this.
|
|
1148
|
-
this.
|
|
1149
|
-
}
|
|
1150
|
-
protoOf(SocketImpl).
|
|
1151
|
-
return this.
|
|
1144
|
+
this.lbl_1 = localAddress;
|
|
1145
|
+
this.mbl_1 = remoteAddress;
|
|
1146
|
+
this.nbl_1 = coroutineContext;
|
|
1147
|
+
this.obl_1 = incoming;
|
|
1148
|
+
this.pbl_1 = socket;
|
|
1149
|
+
}
|
|
1150
|
+
protoOf(SocketImpl).ob3 = function () {
|
|
1151
|
+
return this.lbl_1;
|
|
1152
1152
|
};
|
|
1153
|
-
protoOf(SocketImpl).
|
|
1154
|
-
return this.
|
|
1153
|
+
protoOf(SocketImpl).yb3 = function () {
|
|
1154
|
+
return this.mbl_1;
|
|
1155
1155
|
};
|
|
1156
1156
|
protoOf(SocketImpl).z1v = function () {
|
|
1157
|
-
return this.
|
|
1157
|
+
return this.nbl_1;
|
|
1158
1158
|
};
|
|
1159
|
-
protoOf(SocketImpl).
|
|
1159
|
+
protoOf(SocketImpl).hbi = function (channel) {
|
|
1160
1160
|
var tmp = Dispatchers_getInstance().x29_1;
|
|
1161
1161
|
return writer(this, tmp, channel, SocketImpl$attachForReadingImpl$slambda_0(this, channel, null));
|
|
1162
1162
|
};
|
|
1163
|
-
protoOf(SocketImpl).
|
|
1163
|
+
protoOf(SocketImpl).jbi = function (channel) {
|
|
1164
1164
|
var tmp = Dispatchers_getInstance().x29_1;
|
|
1165
1165
|
return reader(this, tmp, channel, SocketImpl$attachForWritingImpl$slambda_0(channel, this, null));
|
|
1166
1166
|
};
|
|
1167
|
-
protoOf(SocketImpl).
|
|
1168
|
-
this.
|
|
1167
|
+
protoOf(SocketImpl).sbh = function () {
|
|
1168
|
+
this.pbl_1.destroy(null);
|
|
1169
1169
|
return null;
|
|
1170
1170
|
};
|
|
1171
1171
|
function tcpBind(selector, localAddress, socketOptions, $completion) {
|
|
@@ -1173,7 +1173,7 @@
|
|
|
1173
1173
|
cancellable.b20();
|
|
1174
1174
|
var tmp = get_nodeNet();
|
|
1175
1175
|
var server = tmp.createServer(CreateServerOptions(tcpBind$lambda));
|
|
1176
|
-
(new ServerSocketContext(server, localAddress, null)).
|
|
1176
|
+
(new ServerSocketContext(server, localAddress, null)).abk(cancellable);
|
|
1177
1177
|
return cancellable.c20();
|
|
1178
1178
|
}
|
|
1179
1179
|
function tcpBind$lambda($this$CreateServerOptions) {
|
|
@@ -1284,12 +1284,12 @@
|
|
|
1284
1284
|
var tmp0_subject = $localAddress;
|
|
1285
1285
|
var tmp;
|
|
1286
1286
|
if (tmp0_subject instanceof InetSocketAddress) {
|
|
1287
|
-
$this$ServerListenOptions.port = $localAddress.
|
|
1288
|
-
$this$ServerListenOptions.host = $localAddress.
|
|
1287
|
+
$this$ServerListenOptions.port = $localAddress.jbm_1;
|
|
1288
|
+
$this$ServerListenOptions.host = $localAddress.ibm_1;
|
|
1289
1289
|
tmp = Unit_instance;
|
|
1290
1290
|
} else {
|
|
1291
1291
|
if (tmp0_subject instanceof UnixSocketAddress) {
|
|
1292
|
-
$this$ServerListenOptions.path = $localAddress.
|
|
1292
|
+
$this$ServerListenOptions.path = $localAddress.hbm_1;
|
|
1293
1293
|
tmp = Unit_instance;
|
|
1294
1294
|
} else {
|
|
1295
1295
|
if (tmp0_subject == null) {
|
|
@@ -1321,7 +1321,7 @@
|
|
|
1321
1321
|
}
|
|
1322
1322
|
function UnixSocketAddress(path) {
|
|
1323
1323
|
SocketAddress.call(this);
|
|
1324
|
-
this.
|
|
1324
|
+
this.hbm_1 = path;
|
|
1325
1325
|
}
|
|
1326
1326
|
protoOf(UnixSocketAddress).equals = function (other) {
|
|
1327
1327
|
var tmp;
|
|
@@ -1332,18 +1332,18 @@
|
|
|
1332
1332
|
}
|
|
1333
1333
|
if (tmp)
|
|
1334
1334
|
return false;
|
|
1335
|
-
return other.
|
|
1335
|
+
return other.hbm_1 === this.hbm_1;
|
|
1336
1336
|
};
|
|
1337
1337
|
protoOf(UnixSocketAddress).hashCode = function () {
|
|
1338
|
-
return getStringHashCode(this.
|
|
1338
|
+
return getStringHashCode(this.hbm_1);
|
|
1339
1339
|
};
|
|
1340
1340
|
protoOf(UnixSocketAddress).toString = function () {
|
|
1341
|
-
return 'UnixSocketAddress(' + this.
|
|
1341
|
+
return 'UnixSocketAddress(' + this.hbm_1 + ')';
|
|
1342
1342
|
};
|
|
1343
1343
|
function InetSocketAddress(hostname, port) {
|
|
1344
1344
|
SocketAddress.call(this);
|
|
1345
|
-
this.
|
|
1346
|
-
this.
|
|
1345
|
+
this.ibm_1 = hostname;
|
|
1346
|
+
this.jbm_1 = port;
|
|
1347
1347
|
}
|
|
1348
1348
|
protoOf(InetSocketAddress).equals = function (other) {
|
|
1349
1349
|
var tmp;
|
|
@@ -1354,13 +1354,13 @@
|
|
|
1354
1354
|
}
|
|
1355
1355
|
if (tmp)
|
|
1356
1356
|
return false;
|
|
1357
|
-
return other.
|
|
1357
|
+
return other.ibm_1 === this.ibm_1 && other.jbm_1 === this.jbm_1;
|
|
1358
1358
|
};
|
|
1359
1359
|
protoOf(InetSocketAddress).hashCode = function () {
|
|
1360
|
-
return imul(getStringHashCode(this.
|
|
1360
|
+
return imul(getStringHashCode(this.ibm_1), 31) + this.jbm_1 | 0;
|
|
1361
1361
|
};
|
|
1362
1362
|
protoOf(InetSocketAddress).toString = function () {
|
|
1363
|
-
return 'InetSocketAddress(' + this.
|
|
1363
|
+
return 'InetSocketAddress(' + this.ibm_1 + ':' + this.jbm_1 + ')';
|
|
1364
1364
|
};
|
|
1365
1365
|
function SocketTimeoutException_init_$Init$(message, $this) {
|
|
1366
1366
|
SocketTimeoutException.call($this, message, null);
|