From 2b35112566b0a857f1b8f55ba89665153d5874cb Mon Sep 17 00:00:00 2001 From: sergeych Date: Thu, 20 Feb 2025 12:10:09 +0300 Subject: [PATCH] added copyright & tradewartime licensing --- bin/pubdocs | 10 ++++++++++ build.gradle.kts | 10 ++++++++++ gradle.properties | 10 ++++++++++ gradle/wrapper/gradle-wrapper.properties | 10 ++++++++++ gradlew | 16 +++++----------- settings.gradle.kts | 10 ++++++++++ .../net/sergeych/kiloparsec/AsyncVarint.kt | 10 ++++++++++ .../net/sergeych/kiloparsec/AtomicAsyncValue.kt | 10 ++++++++++ .../kotlin/net/sergeych/kiloparsec/Command.kt | 11 +++++++++++ .../net/sergeych/kiloparsec/CommandDelegate.kt | 10 ++++++++++ .../net/sergeych/kiloparsec/ConnectionFactory.kt | 10 ++++++++++ .../net/sergeych/kiloparsec/ExceptionWithCode.kt | 10 ++++++++++ .../kotlin/net/sergeych/kiloparsec/KiloClient.kt | 10 ++++++++++ .../sergeych/kiloparsec/KiloClientConnection.kt | 10 ++++++++++ .../net/sergeych/kiloparsec/KiloInterface.kt | 10 ++++++++++ .../net/sergeych/kiloparsec/KiloL0Interface.kt | 10 ++++++++++ .../kotlin/net/sergeych/kiloparsec/KiloParams.kt | 10 ++++++++++ .../sergeych/kiloparsec/KiloRemoteInterface.kt | 10 ++++++++++ .../kotlin/net/sergeych/kiloparsec/KiloScope.kt | 10 ++++++++++ .../kotlin/net/sergeych/kiloparsec/KiloServer.kt | 10 ++++++++++ .../sergeych/kiloparsec/KiloServerConnection.kt | 10 ++++++++++ .../net/sergeych/kiloparsec/LocalInterface.kt | 10 ++++++++++ .../net/sergeych/kiloparsec/RemoteInterface.kt | 10 ++++++++++ .../kotlin/net/sergeych/kiloparsec/Transport.kt | 15 +++++++++++---- .../kiloparsec/adapter/InetTransportDevice.kt | 10 ++++++++++ .../kiloparsec/adapter/NetworkProvider.kt | 10 ++++++++++ .../sergeych/kiloparsec/adapter/ProxyDevice.kt | 10 ++++++++++ .../kiloparsec/adapter/websocketClient.kt | 10 ++++++++++ .../kotlin/net/sergeych/kiloparsec/commands.kt | 10 ++++++++++ .../kotlin/net/sergeych/kiloparsec/tools.kt | 10 ++++++++++ src/commonTest/kotlin/KeysTest.kt | 10 ++++++++++ src/commonTest/kotlin/PackTest.kt | 10 ++++++++++ src/commonTest/kotlin/ToolsTest.kt | 10 ++++++++++ src/commonTest/kotlin/TransportTest.kt | 10 ++++++++++ src/commonTest/kotlin/assertThrows.kt | 10 ++++++++++ .../kiloparsec/adapter/WebsocketServer.kt | 10 ++++++++++ .../kotlin/net/sergeych/kiloparsec/ClientTest.kt | 10 ++++++++++ .../sergeych/kiloparsec/adapter/TcpProvider.kt | 10 ++++++++++ .../net/sergeych/kiloparsec/adapter/UdpBlock.kt | 10 ++++++++++ .../sergeych/kiloparsec/adapter/UdpConnector.kt | 10 ++++++++++ .../sergeych/kiloparsec/adapter/UdpProvider.kt | 10 ++++++++++ .../net/sergeych/kiloparsec/adapter/UdpServer.kt | 10 ++++++++++ .../kiloparsec/adapter/UdpSocketTransport.kt | 10 ++++++++++ .../sergeych/kiloparsec/adapter/InternetTest.kt | 10 ++++++++++ 44 files changed, 437 insertions(+), 15 deletions(-) diff --git a/bin/pubdocs b/bin/pubdocs index 322692e..884634f 100755 --- a/bin/pubdocs +++ b/bin/pubdocs @@ -1,4 +1,14 @@ #!/bin/bash +# +# Copyright (c) 2025. Sergey S. Chernov - All Rights Reserved +# +# You may use, distribute and modify this code under the +# terms of the private license, which you must obtain from the author +# +# To obtain the license, contact the author: https://t.me/real_sergeych or email to +# real dot sergeych at gmail. +# + set -e ./gradlew dokkaHtml rsync -avz ./build/dokka/* code.sergeych.net:/bigstore/sergeych_pub/code/docs/kiloparsec diff --git a/build.gradle.kts b/build.gradle.kts index 5746dc7..426fed8 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,3 +1,13 @@ +/* + * Copyright (c) 2025. Sergey S. Chernov - All Rights Reserved + * + * You may use, distribute and modify this code under the + * terms of the private license, which you must obtain from the author + * + * To obtain the license, contact the author: https://t.me/real_sergeych or email to + * real dot sergeych at gmail. + */ + plugins { kotlin("multiplatform") version "2.1.0" id("org.jetbrains.kotlin.plugin.serialization") version "2.1.0" diff --git a/gradle.properties b/gradle.properties index c484ef9..31a1682 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,2 +1,12 @@ +# +# Copyright (c) 2025. Sergey S. Chernov - All Rights Reserved +# +# You may use, distribute and modify this code under the +# terms of the private license, which you must obtain from the author +# +# To obtain the license, contact the author: https://t.me/real_sergeych or email to +# real dot sergeych at gmail. +# + kotlin.code.style=official kotlin.mpp.applyDefaultHierarchyTemplate=false \ No newline at end of file diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 06febab..0e287ab 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,3 +1,13 @@ +# +# Copyright (c) 2025. Sergey S. Chernov - All Rights Reserved +# +# You may use, distribute and modify this code under the +# terms of the private license, which you must obtain from the author +# +# To obtain the license, contact the author: https://t.me/real_sergeych or email to +# real dot sergeych at gmail. +# + distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip diff --git a/gradlew b/gradlew index 1b6c787..1df0458 100755 --- a/gradlew +++ b/gradlew @@ -1,19 +1,13 @@ #!/bin/sh # -# Copyright © 2015-2021 the original authors. +# Copyright (c) 2025. Sergey S. Chernov - All Rights Reserved # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# You may use, distribute and modify this code under the +# terms of the private license, which you must obtain from the author # -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# To obtain the license, contact the author: https://t.me/real_sergeych or email to +# real dot sergeych at gmail. # ############################################################################## diff --git a/settings.gradle.kts b/settings.gradle.kts index d659e67..961a200 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -1,3 +1,13 @@ +/* + * Copyright (c) 2025. Sergey S. Chernov - All Rights Reserved + * + * You may use, distribute and modify this code under the + * terms of the private license, which you must obtain from the author + * + * To obtain the license, contact the author: https://t.me/real_sergeych or email to + * real dot sergeych at gmail. + */ + pluginManagement { repositories { mavenCentral() diff --git a/src/commonMain/kotlin/net/sergeych/kiloparsec/AsyncVarint.kt b/src/commonMain/kotlin/net/sergeych/kiloparsec/AsyncVarint.kt index c50b58b..525d7fd 100644 --- a/src/commonMain/kotlin/net/sergeych/kiloparsec/AsyncVarint.kt +++ b/src/commonMain/kotlin/net/sergeych/kiloparsec/AsyncVarint.kt @@ -1,3 +1,13 @@ +/* + * Copyright (c) 2025. Sergey S. Chernov - All Rights Reserved + * + * You may use, distribute and modify this code under the + * terms of the private license, which you must obtain from the author + * + * To obtain the license, contact the author: https://t.me/real_sergeych or email to + * real dot sergeych at gmail. + */ + package net.sergeych.kiloparsec import io.ktor.utils.io.* diff --git a/src/commonMain/kotlin/net/sergeych/kiloparsec/AtomicAsyncValue.kt b/src/commonMain/kotlin/net/sergeych/kiloparsec/AtomicAsyncValue.kt index cd15e65..b6825e0 100644 --- a/src/commonMain/kotlin/net/sergeych/kiloparsec/AtomicAsyncValue.kt +++ b/src/commonMain/kotlin/net/sergeych/kiloparsec/AtomicAsyncValue.kt @@ -1,3 +1,13 @@ +/* + * Copyright (c) 2025. Sergey S. Chernov - All Rights Reserved + * + * You may use, distribute and modify this code under the + * terms of the private license, which you must obtain from the author + * + * To obtain the license, contact the author: https://t.me/real_sergeych or email to + * real dot sergeych at gmail. + */ + package net.sergeych.kiloparsec import kotlinx.coroutines.sync.Mutex diff --git a/src/commonMain/kotlin/net/sergeych/kiloparsec/Command.kt b/src/commonMain/kotlin/net/sergeych/kiloparsec/Command.kt index 7ae3f69..5d3a9df 100644 --- a/src/commonMain/kotlin/net/sergeych/kiloparsec/Command.kt +++ b/src/commonMain/kotlin/net/sergeych/kiloparsec/Command.kt @@ -1,3 +1,13 @@ +/* + * Copyright (c) 2025. Sergey S. Chernov - All Rights Reserved + * + * You may use, distribute and modify this code under the + * terms of the private license, which you must obtain from the author + * + * To obtain the license, contact the author: https://t.me/real_sergeych or email to + * real dot sergeych at gmail. + */ + package net.sergeych.kiloparsec import kotlinx.serialization.KSerializer @@ -6,6 +16,7 @@ import net.sergeych.bintools.toDataSource import net.sergeych.bipack.BipackDecoder import net.sergeych.bipack.BipackEncoder import net.sergeych.kiloparsec.Command.Call +import net.sergeych.kiloparsec.Command.Companion.unpackCall import net.sergeych.utools.unpack /** diff --git a/src/commonMain/kotlin/net/sergeych/kiloparsec/CommandDelegate.kt b/src/commonMain/kotlin/net/sergeych/kiloparsec/CommandDelegate.kt index aa12131..1afe1bf 100644 --- a/src/commonMain/kotlin/net/sergeych/kiloparsec/CommandDelegate.kt +++ b/src/commonMain/kotlin/net/sergeych/kiloparsec/CommandDelegate.kt @@ -1,3 +1,13 @@ +/* + * Copyright (c) 2025. Sergey S. Chernov - All Rights Reserved + * + * You may use, distribute and modify this code under the + * terms of the private license, which you must obtain from the author + * + * To obtain the license, contact the author: https://t.me/real_sergeych or email to + * real dot sergeych at gmail. + */ + package net.sergeych.kiloparsec import kotlinx.serialization.KSerializer diff --git a/src/commonMain/kotlin/net/sergeych/kiloparsec/ConnectionFactory.kt b/src/commonMain/kotlin/net/sergeych/kiloparsec/ConnectionFactory.kt index 8ab4966..88e0e2c 100644 --- a/src/commonMain/kotlin/net/sergeych/kiloparsec/ConnectionFactory.kt +++ b/src/commonMain/kotlin/net/sergeych/kiloparsec/ConnectionFactory.kt @@ -1,3 +1,13 @@ +/* + * Copyright (c) 2025. Sergey S. Chernov - All Rights Reserved + * + * You may use, distribute and modify this code under the + * terms of the private license, which you must obtain from the author + * + * To obtain the license, contact the author: https://t.me/real_sergeych or email to + * real dot sergeych at gmail. + */ + package net.sergeych.kiloparsec /** diff --git a/src/commonMain/kotlin/net/sergeych/kiloparsec/ExceptionWithCode.kt b/src/commonMain/kotlin/net/sergeych/kiloparsec/ExceptionWithCode.kt index 57b6083..29388c2 100644 --- a/src/commonMain/kotlin/net/sergeych/kiloparsec/ExceptionWithCode.kt +++ b/src/commonMain/kotlin/net/sergeych/kiloparsec/ExceptionWithCode.kt @@ -1,3 +1,13 @@ +/* + * Copyright (c) 2025. Sergey S. Chernov - All Rights Reserved + * + * You may use, distribute and modify this code under the + * terms of the private license, which you must obtain from the author + * + * To obtain the license, contact the author: https://t.me/real_sergeych or email to + * real dot sergeych at gmail. + */ + package net.sergeych.kiloparsec interface ExceptionWithCode { diff --git a/src/commonMain/kotlin/net/sergeych/kiloparsec/KiloClient.kt b/src/commonMain/kotlin/net/sergeych/kiloparsec/KiloClient.kt index 44d79af..474abae 100644 --- a/src/commonMain/kotlin/net/sergeych/kiloparsec/KiloClient.kt +++ b/src/commonMain/kotlin/net/sergeych/kiloparsec/KiloClient.kt @@ -1,3 +1,13 @@ +/* + * Copyright (c) 2025. Sergey S. Chernov - All Rights Reserved + * + * You may use, distribute and modify this code under the + * terms of the private license, which you must obtain from the author + * + * To obtain the license, contact the author: https://t.me/real_sergeych or email to + * real dot sergeych at gmail. + */ + package net.sergeych.kiloparsec import kotlinx.coroutines.CancellationException diff --git a/src/commonMain/kotlin/net/sergeych/kiloparsec/KiloClientConnection.kt b/src/commonMain/kotlin/net/sergeych/kiloparsec/KiloClientConnection.kt index 5de824d..2e1c130 100644 --- a/src/commonMain/kotlin/net/sergeych/kiloparsec/KiloClientConnection.kt +++ b/src/commonMain/kotlin/net/sergeych/kiloparsec/KiloClientConnection.kt @@ -1,3 +1,13 @@ +/* + * Copyright (c) 2025. Sergey S. Chernov - All Rights Reserved + * + * You may use, distribute and modify this code under the + * terms of the private license, which you must obtain from the author + * + * To obtain the license, contact the author: https://t.me/real_sergeych or email to + * real dot sergeych at gmail. + */ + package net.sergeych.kiloparsec import kotlinx.coroutines.* diff --git a/src/commonMain/kotlin/net/sergeych/kiloparsec/KiloInterface.kt b/src/commonMain/kotlin/net/sergeych/kiloparsec/KiloInterface.kt index ce62928..f43593d 100644 --- a/src/commonMain/kotlin/net/sergeych/kiloparsec/KiloInterface.kt +++ b/src/commonMain/kotlin/net/sergeych/kiloparsec/KiloInterface.kt @@ -1,3 +1,13 @@ +/* + * Copyright (c) 2025. Sergey S. Chernov - All Rights Reserved + * + * You may use, distribute and modify this code under the + * terms of the private license, which you must obtain from the author + * + * To obtain the license, contact the author: https://t.me/real_sergeych or email to + * real dot sergeych at gmail. + */ + package net.sergeych.kiloparsec typealias KiloHandler = KiloScope.()->Unit diff --git a/src/commonMain/kotlin/net/sergeych/kiloparsec/KiloL0Interface.kt b/src/commonMain/kotlin/net/sergeych/kiloparsec/KiloL0Interface.kt index f95de90..2076b4a 100644 --- a/src/commonMain/kotlin/net/sergeych/kiloparsec/KiloL0Interface.kt +++ b/src/commonMain/kotlin/net/sergeych/kiloparsec/KiloL0Interface.kt @@ -1,3 +1,13 @@ +/* + * Copyright (c) 2025. Sergey S. Chernov - All Rights Reserved + * + * You may use, distribute and modify this code under the + * terms of the private license, which you must obtain from the author + * + * To obtain the license, contact the author: https://t.me/real_sergeych or email to + * real dot sergeych at gmail. + */ + package net.sergeych.kiloparsec import kotlinx.coroutines.CompletableDeferred diff --git a/src/commonMain/kotlin/net/sergeych/kiloparsec/KiloParams.kt b/src/commonMain/kotlin/net/sergeych/kiloparsec/KiloParams.kt index 8777885..dcc66b2 100644 --- a/src/commonMain/kotlin/net/sergeych/kiloparsec/KiloParams.kt +++ b/src/commonMain/kotlin/net/sergeych/kiloparsec/KiloParams.kt @@ -1,3 +1,13 @@ +/* + * Copyright (c) 2025. Sergey S. Chernov - All Rights Reserved + * + * You may use, distribute and modify this code under the + * terms of the private license, which you must obtain from the author + * + * To obtain the license, contact the author: https://t.me/real_sergeych or email to + * real dot sergeych at gmail. + */ + package net.sergeych.kiloparsec import kotlinx.serialization.Serializable diff --git a/src/commonMain/kotlin/net/sergeych/kiloparsec/KiloRemoteInterface.kt b/src/commonMain/kotlin/net/sergeych/kiloparsec/KiloRemoteInterface.kt index bcf6283..77a8ef0 100644 --- a/src/commonMain/kotlin/net/sergeych/kiloparsec/KiloRemoteInterface.kt +++ b/src/commonMain/kotlin/net/sergeych/kiloparsec/KiloRemoteInterface.kt @@ -1,3 +1,13 @@ +/* + * Copyright (c) 2025. Sergey S. Chernov - All Rights Reserved + * + * You may use, distribute and modify this code under the + * terms of the private license, which you must obtain from the author + * + * To obtain the license, contact the author: https://t.me/real_sergeych or email to + * real dot sergeych at gmail. + */ + package net.sergeych.kiloparsec import kotlinx.coroutines.CompletableDeferred diff --git a/src/commonMain/kotlin/net/sergeych/kiloparsec/KiloScope.kt b/src/commonMain/kotlin/net/sergeych/kiloparsec/KiloScope.kt index 5b82df5..a8a9519 100644 --- a/src/commonMain/kotlin/net/sergeych/kiloparsec/KiloScope.kt +++ b/src/commonMain/kotlin/net/sergeych/kiloparsec/KiloScope.kt @@ -1,3 +1,13 @@ +/* + * Copyright (c) 2025. Sergey S. Chernov - All Rights Reserved + * + * You may use, distribute and modify this code under the + * terms of the private license, which you must obtain from the author + * + * To obtain the license, contact the author: https://t.me/real_sergeych or email to + * real dot sergeych at gmail. + */ + package net.sergeych.kiloparsec import net.sergeych.crypto2.SigningKey diff --git a/src/commonMain/kotlin/net/sergeych/kiloparsec/KiloServer.kt b/src/commonMain/kotlin/net/sergeych/kiloparsec/KiloServer.kt index 0ab32fb..c5addae 100644 --- a/src/commonMain/kotlin/net/sergeych/kiloparsec/KiloServer.kt +++ b/src/commonMain/kotlin/net/sergeych/kiloparsec/KiloServer.kt @@ -1,3 +1,13 @@ +/* + * Copyright (c) 2025. Sergey S. Chernov - All Rights Reserved + * + * You may use, distribute and modify this code under the + * terms of the private license, which you must obtain from the author + * + * To obtain the license, contact the author: https://t.me/real_sergeych or email to + * real dot sergeych at gmail. + */ + package net.sergeych.kiloparsec import kotlinx.coroutines.CancellationException diff --git a/src/commonMain/kotlin/net/sergeych/kiloparsec/KiloServerConnection.kt b/src/commonMain/kotlin/net/sergeych/kiloparsec/KiloServerConnection.kt index 92596e3..f1950b6 100644 --- a/src/commonMain/kotlin/net/sergeych/kiloparsec/KiloServerConnection.kt +++ b/src/commonMain/kotlin/net/sergeych/kiloparsec/KiloServerConnection.kt @@ -1,3 +1,13 @@ +/* + * Copyright (c) 2025. Sergey S. Chernov - All Rights Reserved + * + * You may use, distribute and modify this code under the + * terms of the private license, which you must obtain from the author + * + * To obtain the license, contact the author: https://t.me/real_sergeych or email to + * real dot sergeych at gmail. + */ + package net.sergeych.kiloparsec import kotlinx.coroutines.CompletableDeferred diff --git a/src/commonMain/kotlin/net/sergeych/kiloparsec/LocalInterface.kt b/src/commonMain/kotlin/net/sergeych/kiloparsec/LocalInterface.kt index 54facf5..91052d1 100644 --- a/src/commonMain/kotlin/net/sergeych/kiloparsec/LocalInterface.kt +++ b/src/commonMain/kotlin/net/sergeych/kiloparsec/LocalInterface.kt @@ -1,3 +1,13 @@ +/* + * Copyright (c) 2025. Sergey S. Chernov - All Rights Reserved + * + * You may use, distribute and modify this code under the + * terms of the private license, which you must obtain from the author + * + * To obtain the license, contact the author: https://t.me/real_sergeych or email to + * real dot sergeych at gmail. + */ + package net.sergeych.kiloparsec import net.sergeych.mp_logger.LogTag diff --git a/src/commonMain/kotlin/net/sergeych/kiloparsec/RemoteInterface.kt b/src/commonMain/kotlin/net/sergeych/kiloparsec/RemoteInterface.kt index 0c2bd56..c4b211f 100644 --- a/src/commonMain/kotlin/net/sergeych/kiloparsec/RemoteInterface.kt +++ b/src/commonMain/kotlin/net/sergeych/kiloparsec/RemoteInterface.kt @@ -1,3 +1,13 @@ +/* + * Copyright (c) 2025. Sergey S. Chernov - All Rights Reserved + * + * You may use, distribute and modify this code under the + * terms of the private license, which you must obtain from the author + * + * To obtain the license, contact the author: https://t.me/real_sergeych or email to + * real dot sergeych at gmail. + */ + package net.sergeych.kiloparsec /** diff --git a/src/commonMain/kotlin/net/sergeych/kiloparsec/Transport.kt b/src/commonMain/kotlin/net/sergeych/kiloparsec/Transport.kt index 62e4b6f..a9be57f 100644 --- a/src/commonMain/kotlin/net/sergeych/kiloparsec/Transport.kt +++ b/src/commonMain/kotlin/net/sergeych/kiloparsec/Transport.kt @@ -1,3 +1,13 @@ +/* + * Copyright (c) 2025. Sergey S. Chernov - All Rights Reserved + * + * You may use, distribute and modify this code under the + * terms of the private license, which you must obtain from the author + * + * To obtain the license, contact the author: https://t.me/real_sergeych or email to + * real dot sergeych at gmail. + */ + package net.sergeych.kiloparsec import kotlinx.coroutines.* @@ -195,10 +205,7 @@ class Transport( } is Block.Response -> access.withLock { - calls.remove(b.forId)?.let { -// debug { "activating wait handle for ${b.forId}" } - it.complete(b.packedResult) - } + calls.remove(b.forId)?.complete(b.packedResult) ?: warning { "wait handle not found for ${b.forId}" } } diff --git a/src/commonMain/kotlin/net/sergeych/kiloparsec/adapter/InetTransportDevice.kt b/src/commonMain/kotlin/net/sergeych/kiloparsec/adapter/InetTransportDevice.kt index 759d8b5..156ecee 100644 --- a/src/commonMain/kotlin/net/sergeych/kiloparsec/adapter/InetTransportDevice.kt +++ b/src/commonMain/kotlin/net/sergeych/kiloparsec/adapter/InetTransportDevice.kt @@ -1,3 +1,13 @@ +/* + * Copyright (c) 2025. Sergey S. Chernov - All Rights Reserved + * + * You may use, distribute and modify this code under the + * terms of the private license, which you must obtain from the author + * + * To obtain the license, contact the author: https://t.me/real_sergeych or email to + * real dot sergeych at gmail. + */ + package net.sergeych.kiloparsec.adapter import kotlinx.coroutines.channels.Channel diff --git a/src/commonMain/kotlin/net/sergeych/kiloparsec/adapter/NetworkProvider.kt b/src/commonMain/kotlin/net/sergeych/kiloparsec/adapter/NetworkProvider.kt index f026cca..75a5108 100644 --- a/src/commonMain/kotlin/net/sergeych/kiloparsec/adapter/NetworkProvider.kt +++ b/src/commonMain/kotlin/net/sergeych/kiloparsec/adapter/NetworkProvider.kt @@ -1,3 +1,13 @@ +/* + * Copyright (c) 2025. Sergey S. Chernov - All Rights Reserved + * + * You may use, distribute and modify this code under the + * terms of the private license, which you must obtain from the author + * + * To obtain the license, contact the author: https://t.me/real_sergeych or email to + * real dot sergeych at gmail. + */ + package net.sergeych.kiloparsec.adapter /** diff --git a/src/commonMain/kotlin/net/sergeych/kiloparsec/adapter/ProxyDevice.kt b/src/commonMain/kotlin/net/sergeych/kiloparsec/adapter/ProxyDevice.kt index a11d2d3..d201088 100644 --- a/src/commonMain/kotlin/net/sergeych/kiloparsec/adapter/ProxyDevice.kt +++ b/src/commonMain/kotlin/net/sergeych/kiloparsec/adapter/ProxyDevice.kt @@ -1,3 +1,13 @@ +/* + * Copyright (c) 2025. Sergey S. Chernov - All Rights Reserved + * + * You may use, distribute and modify this code under the + * terms of the private license, which you must obtain from the author + * + * To obtain the license, contact the author: https://t.me/real_sergeych or email to + * real dot sergeych at gmail. + */ + package net.sergeych.kiloparsec.adapter import kotlinx.coroutines.channels.Channel diff --git a/src/commonMain/kotlin/net/sergeych/kiloparsec/adapter/websocketClient.kt b/src/commonMain/kotlin/net/sergeych/kiloparsec/adapter/websocketClient.kt index 12ea5fa..81923ad 100644 --- a/src/commonMain/kotlin/net/sergeych/kiloparsec/adapter/websocketClient.kt +++ b/src/commonMain/kotlin/net/sergeych/kiloparsec/adapter/websocketClient.kt @@ -1,3 +1,13 @@ +/* + * Copyright (c) 2025. Sergey S. Chernov - All Rights Reserved + * + * You may use, distribute and modify this code under the + * terms of the private license, which you must obtain from the author + * + * To obtain the license, contact the author: https://t.me/real_sergeych or email to + * real dot sergeych at gmail. + */ + package net.sergeych.kiloparsec.adapter import io.ktor.client.* diff --git a/src/commonMain/kotlin/net/sergeych/kiloparsec/commands.kt b/src/commonMain/kotlin/net/sergeych/kiloparsec/commands.kt index 50ab94b..a160f03 100644 --- a/src/commonMain/kotlin/net/sergeych/kiloparsec/commands.kt +++ b/src/commonMain/kotlin/net/sergeych/kiloparsec/commands.kt @@ -1,3 +1,13 @@ +/* + * Copyright (c) 2025. Sergey S. Chernov - All Rights Reserved + * + * You may use, distribute and modify this code under the + * terms of the private license, which you must obtain from the author + * + * To obtain the license, contact the author: https://t.me/real_sergeych or email to + * real dot sergeych at gmail. + */ + package net.sergeych.kiloparsec import kotlinx.serialization.Serializable diff --git a/src/commonMain/kotlin/net/sergeych/kiloparsec/tools.kt b/src/commonMain/kotlin/net/sergeych/kiloparsec/tools.kt index 7194733..785672e 100644 --- a/src/commonMain/kotlin/net/sergeych/kiloparsec/tools.kt +++ b/src/commonMain/kotlin/net/sergeych/kiloparsec/tools.kt @@ -1,3 +1,13 @@ +/* + * Copyright (c) 2025. Sergey S. Chernov - All Rights Reserved + * + * You may use, distribute and modify this code under the + * terms of the private license, which you must obtain from the author + * + * To obtain the license, contact the author: https://t.me/real_sergeych or email to + * real dot sergeych at gmail. + */ + package net.sergeych.kiloparsec import kotlinx.coroutines.sync.Mutex diff --git a/src/commonTest/kotlin/KeysTest.kt b/src/commonTest/kotlin/KeysTest.kt index 60aef56..fa17f9d 100644 --- a/src/commonTest/kotlin/KeysTest.kt +++ b/src/commonTest/kotlin/KeysTest.kt @@ -1,3 +1,13 @@ +/* + * Copyright (c) 2025. Sergey S. Chernov - All Rights Reserved + * + * You may use, distribute and modify this code under the + * terms of the private license, which you must obtain from the author + * + * To obtain the license, contact the author: https://t.me/real_sergeych or email to + * real dot sergeych at gmail. + */ + import kotlinx.coroutines.test.runTest import net.sergeych.crypto2.IllegalSignatureException import net.sergeych.crypto2.SealedBox diff --git a/src/commonTest/kotlin/PackTest.kt b/src/commonTest/kotlin/PackTest.kt index bfe8a94..176fc57 100644 --- a/src/commonTest/kotlin/PackTest.kt +++ b/src/commonTest/kotlin/PackTest.kt @@ -1,3 +1,13 @@ +/* + * Copyright (c) 2025. Sergey S. Chernov - All Rights Reserved + * + * You may use, distribute and modify this code under the + * terms of the private license, which you must obtain from the author + * + * To obtain the license, contact the author: https://t.me/real_sergeych or email to + * real dot sergeych at gmail. + */ + import kotlinx.coroutines.test.runTest import kotlinx.datetime.Instant import net.sergeych.bipack.BipackEncoder diff --git a/src/commonTest/kotlin/ToolsTest.kt b/src/commonTest/kotlin/ToolsTest.kt index 506a868..e80eaa4 100644 --- a/src/commonTest/kotlin/ToolsTest.kt +++ b/src/commonTest/kotlin/ToolsTest.kt @@ -1,3 +1,13 @@ +/* + * Copyright (c) 2025. Sergey S. Chernov - All Rights Reserved + * + * You may use, distribute and modify this code under the + * terms of the private license, which you must obtain from the author + * + * To obtain the license, contact the author: https://t.me/real_sergeych or email to + * real dot sergeych at gmail. + */ + class ToolsTest { // @Test // fun testRemoceCmd() { diff --git a/src/commonTest/kotlin/TransportTest.kt b/src/commonTest/kotlin/TransportTest.kt index a18a5ac..e4941ff 100644 --- a/src/commonTest/kotlin/TransportTest.kt +++ b/src/commonTest/kotlin/TransportTest.kt @@ -1,3 +1,13 @@ +/* + * Copyright (c) 2025. Sergey S. Chernov - All Rights Reserved + * + * You may use, distribute and modify this code under the + * terms of the private license, which you must obtain from the author + * + * To obtain the license, contact the author: https://t.me/real_sergeych or email to + * real dot sergeych at gmail. + */ + import kotlinx.coroutines.* import kotlinx.coroutines.channels.Channel import kotlinx.coroutines.channels.ReceiveChannel diff --git a/src/commonTest/kotlin/assertThrows.kt b/src/commonTest/kotlin/assertThrows.kt index 3e2d4f1..40d0278 100644 --- a/src/commonTest/kotlin/assertThrows.kt +++ b/src/commonTest/kotlin/assertThrows.kt @@ -1,3 +1,13 @@ +/* + * Copyright (c) 2025. Sergey S. Chernov - All Rights Reserved + * + * You may use, distribute and modify this code under the + * terms of the private license, which you must obtain from the author + * + * To obtain the license, contact the author: https://t.me/real_sergeych or email to + * real dot sergeych at gmail. + */ + import kotlin.test.fail inline fun assertThrows(f: ()->Unit): T { diff --git a/src/jvmMain/kotlin/net/sergeych/kiloparsec/adapter/WebsocketServer.kt b/src/jvmMain/kotlin/net/sergeych/kiloparsec/adapter/WebsocketServer.kt index 55cce0c..4da624a 100644 --- a/src/jvmMain/kotlin/net/sergeych/kiloparsec/adapter/WebsocketServer.kt +++ b/src/jvmMain/kotlin/net/sergeych/kiloparsec/adapter/WebsocketServer.kt @@ -1,3 +1,13 @@ +/* + * Copyright (c) 2025. Sergey S. Chernov - All Rights Reserved + * + * You may use, distribute and modify this code under the + * terms of the private license, which you must obtain from the author + * + * To obtain the license, contact the author: https://t.me/real_sergeych or email to + * real dot sergeych at gmail. + */ + package net.sergeych.kiloparsec.adapter import io.ktor.server.application.* diff --git a/src/jvmTest/kotlin/net/sergeych/kiloparsec/ClientTest.kt b/src/jvmTest/kotlin/net/sergeych/kiloparsec/ClientTest.kt index 8a336c9..550d1b3 100644 --- a/src/jvmTest/kotlin/net/sergeych/kiloparsec/ClientTest.kt +++ b/src/jvmTest/kotlin/net/sergeych/kiloparsec/ClientTest.kt @@ -1,3 +1,13 @@ +/* + * Copyright (c) 2025. Sergey S. Chernov - All Rights Reserved + * + * You may use, distribute and modify this code under the + * terms of the private license, which you must obtain from the author + * + * To obtain the license, contact the author: https://t.me/real_sergeych or email to + * real dot sergeych at gmail. + */ + package net.sergeych.kiloparsec import assertThrows diff --git a/src/ktorSocketMain/kotlin/net/sergeych/kiloparsec/adapter/TcpProvider.kt b/src/ktorSocketMain/kotlin/net/sergeych/kiloparsec/adapter/TcpProvider.kt index 39fb1e4..d757131 100644 --- a/src/ktorSocketMain/kotlin/net/sergeych/kiloparsec/adapter/TcpProvider.kt +++ b/src/ktorSocketMain/kotlin/net/sergeych/kiloparsec/adapter/TcpProvider.kt @@ -1,3 +1,13 @@ +/* + * Copyright (c) 2025. Sergey S. Chernov - All Rights Reserved + * + * You may use, distribute and modify this code under the + * terms of the private license, which you must obtain from the author + * + * To obtain the license, contact the author: https://t.me/real_sergeych or email to + * real dot sergeych at gmail. + */ + package net.sergeych.kiloparsec.adapter import io.ktor.network.selector.* diff --git a/src/ktorSocketMain/kotlin/net/sergeych/kiloparsec/adapter/UdpBlock.kt b/src/ktorSocketMain/kotlin/net/sergeych/kiloparsec/adapter/UdpBlock.kt index 37342b5..231b381 100644 --- a/src/ktorSocketMain/kotlin/net/sergeych/kiloparsec/adapter/UdpBlock.kt +++ b/src/ktorSocketMain/kotlin/net/sergeych/kiloparsec/adapter/UdpBlock.kt @@ -1,3 +1,13 @@ +/* + * Copyright (c) 2025. Sergey S. Chernov - All Rights Reserved + * + * You may use, distribute and modify this code under the + * terms of the private license, which you must obtain from the author + * + * To obtain the license, contact the author: https://t.me/real_sergeych or email to + * real dot sergeych at gmail. + */ + package net.sergeych.kiloparsec.adapter import io.ktor.network.sockets.* diff --git a/src/ktorSocketMain/kotlin/net/sergeych/kiloparsec/adapter/UdpConnector.kt b/src/ktorSocketMain/kotlin/net/sergeych/kiloparsec/adapter/UdpConnector.kt index cc473ed..fa0c777 100644 --- a/src/ktorSocketMain/kotlin/net/sergeych/kiloparsec/adapter/UdpConnector.kt +++ b/src/ktorSocketMain/kotlin/net/sergeych/kiloparsec/adapter/UdpConnector.kt @@ -1,3 +1,13 @@ +/* + * Copyright (c) 2025. Sergey S. Chernov - All Rights Reserved + * + * You may use, distribute and modify this code under the + * terms of the private license, which you must obtain from the author + * + * To obtain the license, contact the author: https://t.me/real_sergeych or email to + * real dot sergeych at gmail. + */ + package net.sergeych.kiloparsec.adapter import io.ktor.network.sockets.* diff --git a/src/ktorSocketMain/kotlin/net/sergeych/kiloparsec/adapter/UdpProvider.kt b/src/ktorSocketMain/kotlin/net/sergeych/kiloparsec/adapter/UdpProvider.kt index a969f4d..742e049 100644 --- a/src/ktorSocketMain/kotlin/net/sergeych/kiloparsec/adapter/UdpProvider.kt +++ b/src/ktorSocketMain/kotlin/net/sergeych/kiloparsec/adapter/UdpProvider.kt @@ -1,3 +1,13 @@ +/* + * Copyright (c) 2025. Sergey S. Chernov - All Rights Reserved + * + * You may use, distribute and modify this code under the + * terms of the private license, which you must obtain from the author + * + * To obtain the license, contact the author: https://t.me/real_sergeych or email to + * real dot sergeych at gmail. + */ + package net.sergeych.kiloparsec.adapter import io.ktor.network.selector.* diff --git a/src/ktorSocketMain/kotlin/net/sergeych/kiloparsec/adapter/UdpServer.kt b/src/ktorSocketMain/kotlin/net/sergeych/kiloparsec/adapter/UdpServer.kt index 0c9d982..c3abd88 100644 --- a/src/ktorSocketMain/kotlin/net/sergeych/kiloparsec/adapter/UdpServer.kt +++ b/src/ktorSocketMain/kotlin/net/sergeych/kiloparsec/adapter/UdpServer.kt @@ -1,3 +1,13 @@ +/* + * Copyright (c) 2025. Sergey S. Chernov - All Rights Reserved + * + * You may use, distribute and modify this code under the + * terms of the private license, which you must obtain from the author + * + * To obtain the license, contact the author: https://t.me/real_sergeych or email to + * real dot sergeych at gmail. + */ + package net.sergeych.kiloparsec.adapter import io.ktor.network.selector.* diff --git a/src/ktorSocketMain/kotlin/net/sergeych/kiloparsec/adapter/UdpSocketTransport.kt b/src/ktorSocketMain/kotlin/net/sergeych/kiloparsec/adapter/UdpSocketTransport.kt index dd23662..0b1879d 100644 --- a/src/ktorSocketMain/kotlin/net/sergeych/kiloparsec/adapter/UdpSocketTransport.kt +++ b/src/ktorSocketMain/kotlin/net/sergeych/kiloparsec/adapter/UdpSocketTransport.kt @@ -1,3 +1,13 @@ +/* + * Copyright (c) 2025. Sergey S. Chernov - All Rights Reserved + * + * You may use, distribute and modify this code under the + * terms of the private license, which you must obtain from the author + * + * To obtain the license, contact the author: https://t.me/real_sergeych or email to + * real dot sergeych at gmail. + */ + package net.sergeych.kiloparsec.adapter import io.ktor.network.sockets.* diff --git a/src/ktorSocketTest/kotlin/net/sergeych/kiloparsec/adapter/InternetTest.kt b/src/ktorSocketTest/kotlin/net/sergeych/kiloparsec/adapter/InternetTest.kt index b651a15..f91c65f 100644 --- a/src/ktorSocketTest/kotlin/net/sergeych/kiloparsec/adapter/InternetTest.kt +++ b/src/ktorSocketTest/kotlin/net/sergeych/kiloparsec/adapter/InternetTest.kt @@ -1,3 +1,13 @@ +/* + * Copyright (c) 2025. Sergey S. Chernov - All Rights Reserved + * + * You may use, distribute and modify this code under the + * terms of the private license, which you must obtain from the author + * + * To obtain the license, contact the author: https://t.me/real_sergeych or email to + * real dot sergeych at gmail. + */ + package net.sergeych.kiloparsec.adapter import assertThrows