From 42990789195b5eb162c6c7105545d967f8844a02 Mon Sep 17 00:00:00 2001 From: nathan Date: Wed, 19 Aug 2020 15:25:59 +0200 Subject: [PATCH] Updated copyright notices in files --- .../network/aeron/client/ClientException.kt | 15 +++++ .../aeron/client/ClientRejectedException.kt | 15 +++++ .../aeron/client/ClientTimedOutException.kt | 15 +++++ .../aeron/server/AllocationException.kt | 15 +++++ .../aeron/server/PortAllocationException.kt | 15 +++++ .../network/aeron/server/PortAllocator.kt | 15 +++++ .../network/aeron/server/RandomIdAllocator.kt | 15 +++++ .../network/aeron/server/ServerException.kt | 15 +++++ src/dorkbox/network/connection/Connection.kt | 2 +- .../network/connection/ConnectionParams.kt | 15 +++++ .../network/connection/CryptoManagement.kt | 62 ++++++++++--------- src/dorkbox/network/connection/EndPoint.kt | 2 +- src/dorkbox/network/connection/Listener.kt | 30 --------- .../network/connection/ListenerManager.kt | 15 +++++ .../connection/MediaDriverConnection.kt | 15 +++++ .../network/connection/MediaDriverType.kt | 15 +++++ .../MessageNotRegisteredException.kt | 15 +++++ src/dorkbox/network/connection/Ping.kt | 2 +- .../network/connection/PingListener.java | 2 +- .../connection/PublicKeyValidationState.kt | 15 +++++ .../connectionType/ConnectionProperties.kt | 15 +++++ .../connectionType/ConnectionRule.kt | 15 +++++ .../connectionType/IpConnectionTypeRule.kt | 15 +++++ .../connection/ping/PingCanceledException.kt | 2 +- .../network/connection/ping/PingFuture.kt | 2 +- .../network/connection/ping/PingMessage.kt | 2 +- .../network/connection/ping/PingTuple.kt | 2 +- 27 files changed, 296 insertions(+), 67 deletions(-) delete mode 100644 src/dorkbox/network/connection/Listener.kt diff --git a/src/dorkbox/network/aeron/client/ClientException.kt b/src/dorkbox/network/aeron/client/ClientException.kt index 43d12008..6aab8d62 100644 --- a/src/dorkbox/network/aeron/client/ClientException.kt +++ b/src/dorkbox/network/aeron/client/ClientException.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2020 dorkbox, llc + * + * 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 + * + * http://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. + */ package dorkbox.network.aeron.client /** diff --git a/src/dorkbox/network/aeron/client/ClientRejectedException.kt b/src/dorkbox/network/aeron/client/ClientRejectedException.kt index 49cc8036..dc3a5810 100644 --- a/src/dorkbox/network/aeron/client/ClientRejectedException.kt +++ b/src/dorkbox/network/aeron/client/ClientRejectedException.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2020 dorkbox, llc + * + * 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 + * + * http://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. + */ package dorkbox.network.aeron.client /** diff --git a/src/dorkbox/network/aeron/client/ClientTimedOutException.kt b/src/dorkbox/network/aeron/client/ClientTimedOutException.kt index 42f86834..6110e0c4 100644 --- a/src/dorkbox/network/aeron/client/ClientTimedOutException.kt +++ b/src/dorkbox/network/aeron/client/ClientTimedOutException.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2020 dorkbox, llc + * + * 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 + * + * http://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. + */ package dorkbox.network.aeron.client /** diff --git a/src/dorkbox/network/aeron/server/AllocationException.kt b/src/dorkbox/network/aeron/server/AllocationException.kt index ca82418d..7557b228 100644 --- a/src/dorkbox/network/aeron/server/AllocationException.kt +++ b/src/dorkbox/network/aeron/server/AllocationException.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2020 dorkbox, llc + * + * 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 + * + * http://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. + */ package dorkbox.network.aeron.server /** diff --git a/src/dorkbox/network/aeron/server/PortAllocationException.kt b/src/dorkbox/network/aeron/server/PortAllocationException.kt index 36b7547d..519d7788 100644 --- a/src/dorkbox/network/aeron/server/PortAllocationException.kt +++ b/src/dorkbox/network/aeron/server/PortAllocationException.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2020 dorkbox, llc + * + * 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 + * + * http://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. + */ package dorkbox.network.aeron.server /** diff --git a/src/dorkbox/network/aeron/server/PortAllocator.kt b/src/dorkbox/network/aeron/server/PortAllocator.kt index dc7f63b1..d3bf7e42 100644 --- a/src/dorkbox/network/aeron/server/PortAllocator.kt +++ b/src/dorkbox/network/aeron/server/PortAllocator.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2020 dorkbox, llc + * + * 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 + * + * http://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. + */ package dorkbox.network.aeron.server import org.agrona.collections.IntArrayList diff --git a/src/dorkbox/network/aeron/server/RandomIdAllocator.kt b/src/dorkbox/network/aeron/server/RandomIdAllocator.kt index 28b602e5..5fee7812 100644 --- a/src/dorkbox/network/aeron/server/RandomIdAllocator.kt +++ b/src/dorkbox/network/aeron/server/RandomIdAllocator.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2020 dorkbox, llc + * + * 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 + * + * http://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. + */ package dorkbox.network.aeron.server import org.agrona.collections.IntHashSet diff --git a/src/dorkbox/network/aeron/server/ServerException.kt b/src/dorkbox/network/aeron/server/ServerException.kt index 7d70ed28..76706800 100644 --- a/src/dorkbox/network/aeron/server/ServerException.kt +++ b/src/dorkbox/network/aeron/server/ServerException.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2020 dorkbox, llc + * + * 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 + * + * http://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. + */ package dorkbox.network.aeron.server /** diff --git a/src/dorkbox/network/connection/Connection.kt b/src/dorkbox/network/connection/Connection.kt index ad3844b8..eb82644f 100644 --- a/src/dorkbox/network/connection/Connection.kt +++ b/src/dorkbox/network/connection/Connection.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010 dorkbox, llc + * Copyright 2020 dorkbox, llc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/dorkbox/network/connection/ConnectionParams.kt b/src/dorkbox/network/connection/ConnectionParams.kt index 9cf99ec6..5360785b 100644 --- a/src/dorkbox/network/connection/ConnectionParams.kt +++ b/src/dorkbox/network/connection/ConnectionParams.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2020 dorkbox, llc + * + * 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 + * + * http://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. + */ package dorkbox.network.connection data class ConnectionParams(val endPoint: EndPoint, val mediaDriverConnection: MediaDriverConnection, diff --git a/src/dorkbox/network/connection/CryptoManagement.kt b/src/dorkbox/network/connection/CryptoManagement.kt index b6c167f4..a66eb26a 100644 --- a/src/dorkbox/network/connection/CryptoManagement.kt +++ b/src/dorkbox/network/connection/CryptoManagement.kt @@ -1,5 +1,18 @@ -@file:Suppress("DuplicatedCode") - +/* + * Copyright 2020 dorkbox, llc + * + * 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 + * + * http://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. + */ package dorkbox.network.connection import dorkbox.netUtil.IPv4 @@ -145,14 +158,11 @@ internal class CryptoManagement(val logger: KLogger, return PublicKeyValidationState.VALID } - - fun encrypt(publicationPort: Int, - subscriptionPort: Int, - connectionSessionId: Int, - connectionStreamId: Int, - clientPublicKeyBytes: ByteArray): ByteArray { - - val clientPublicKey = keyFactory.generatePublic(X509EncodedKeySpec(clientPublicKeyBytes)) as XECPublicKey + /** + * Generate the AES key based on ECDH + */ + private fun generateAesKey(remotePublicKeyBytes: ByteArray, bytesA: ByteArray, bytesB: ByteArray): SecretKeySpec { + val clientPublicKey = keyFactory.generatePublic(X509EncodedKeySpec(remotePublicKeyBytes)) as XECPublicKey keyAgreement.init(privateKey) keyAgreement.doPhase(clientPublicKey, true) @@ -161,15 +171,23 @@ internal class CryptoManagement(val logger: KLogger, // Derive a key from the shared secret and both public keys hash.reset() hash.update(sharedSecret) - hash.update(clientPublicKeyBytes) - hash.update(publicKeyBytes) + hash.update(bytesA) + hash.update(bytesB) - val keyBytes = hash.digest() - val secretKeySpec = SecretKeySpec(keyBytes, "AES") + return SecretKeySpec(hash.digest(), "AES") + } + fun encrypt(publicationPort: Int, + subscriptionPort: Int, + connectionSessionId: Int, + connectionStreamId: Int, + clientPublicKeyBytes: ByteArray): ByteArray { + + val secretKeySpec = generateAesKey(clientPublicKeyBytes, clientPublicKeyBytes, publicKeyBytes) val iv = ByteArray(GCM_IV_LENGTH) secureRandom.nextBytes(iv); + val gcmParameterSpec = GCMParameterSpec(GCM_TAG_LENGTH * 8, iv) aesCipher.init(Cipher.ENCRYPT_MODE, secretKeySpec, gcmParameterSpec) @@ -190,21 +208,7 @@ internal class CryptoManagement(val logger: KLogger, return null } - val serverPublicKey = keyFactory.generatePublic(X509EncodedKeySpec(serverPublicKeyBytes)) as XECPublicKey - - keyAgreement.init(privateKey) - keyAgreement.doPhase(serverPublicKey, true) - val sharedSecret = keyAgreement.generateSecret() - - // Derive a key from the shared secret and both public keys - hash.reset() - hash.update(sharedSecret) - hash.update(publicKeyBytes) - hash.update(serverPublicKeyBytes) - - val keyBytes = hash.digest() - val secretKeySpec = SecretKeySpec(keyBytes, "AES") - + val secretKeySpec = generateAesKey(serverPublicKeyBytes, publicKeyBytes, serverPublicKeyBytes) // now read the encrypted data val iv = ByteArray(GCM_IV_LENGTH) diff --git a/src/dorkbox/network/connection/EndPoint.kt b/src/dorkbox/network/connection/EndPoint.kt index 6c59bee8..437d76d5 100644 --- a/src/dorkbox/network/connection/EndPoint.kt +++ b/src/dorkbox/network/connection/EndPoint.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010 dorkbox, llc + * Copyright 2020 dorkbox, llc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/dorkbox/network/connection/Listener.kt b/src/dorkbox/network/connection/Listener.kt deleted file mode 100644 index db2b0d5f..00000000 --- a/src/dorkbox/network/connection/Listener.kt +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright 2010 dorkbox, llc - * - * 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 - * - * http://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. - */ -package dorkbox.network.connection - -interface Listener {} - -/** - * Called when the remote end has been connected. This will be invoked before any objects are received by the network. - */ -interface OnConnected { - /** - * Called when the remote end has been connected. This will be invoked before any objects are received by the network. - */ - fun connected(connection: C) -} - - diff --git a/src/dorkbox/network/connection/ListenerManager.kt b/src/dorkbox/network/connection/ListenerManager.kt index 9e8ed2d1..e2ed91bd 100644 --- a/src/dorkbox/network/connection/ListenerManager.kt +++ b/src/dorkbox/network/connection/ListenerManager.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2020 dorkbox, llc + * + * 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 + * + * http://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. + */ package dorkbox.network.connection import dorkbox.network.ipFilter.IpFilterRule diff --git a/src/dorkbox/network/connection/MediaDriverConnection.kt b/src/dorkbox/network/connection/MediaDriverConnection.kt index 98b9daf0..1dd74728 100644 --- a/src/dorkbox/network/connection/MediaDriverConnection.kt +++ b/src/dorkbox/network/connection/MediaDriverConnection.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2020 dorkbox, llc + * + * 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 + * + * http://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. + */ package dorkbox.network.connection import dorkbox.network.aeron.client.ClientException diff --git a/src/dorkbox/network/connection/MediaDriverType.kt b/src/dorkbox/network/connection/MediaDriverType.kt index 11d35455..89d00ed0 100644 --- a/src/dorkbox/network/connection/MediaDriverType.kt +++ b/src/dorkbox/network/connection/MediaDriverType.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2020 dorkbox, llc + * + * 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 + * + * http://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. + */ package dorkbox.network.connection enum class MediaDriverType(private val type: String) { diff --git a/src/dorkbox/network/connection/MessageNotRegisteredException.kt b/src/dorkbox/network/connection/MessageNotRegisteredException.kt index 0c838e66..1e44e5ea 100644 --- a/src/dorkbox/network/connection/MessageNotRegisteredException.kt +++ b/src/dorkbox/network/connection/MessageNotRegisteredException.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2020 dorkbox, llc + * + * 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 + * + * http://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. + */ package dorkbox.network.connection /** diff --git a/src/dorkbox/network/connection/Ping.kt b/src/dorkbox/network/connection/Ping.kt index a72f8d7a..a9cb99f0 100644 --- a/src/dorkbox/network/connection/Ping.kt +++ b/src/dorkbox/network/connection/Ping.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010 dorkbox, llc + * Copyright 2020 dorkbox, llc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/dorkbox/network/connection/PingListener.java b/src/dorkbox/network/connection/PingListener.java index e3df1e85..d238d4cf 100644 --- a/src/dorkbox/network/connection/PingListener.java +++ b/src/dorkbox/network/connection/PingListener.java @@ -1,5 +1,5 @@ /* - * Copyright 2010 dorkbox, llc + * Copyright 2020 dorkbox, llc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/dorkbox/network/connection/PublicKeyValidationState.kt b/src/dorkbox/network/connection/PublicKeyValidationState.kt index 849c297e..7ef1c7ac 100644 --- a/src/dorkbox/network/connection/PublicKeyValidationState.kt +++ b/src/dorkbox/network/connection/PublicKeyValidationState.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2020 dorkbox, llc + * + * 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 + * + * http://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. + */ package dorkbox.network.connection enum class PublicKeyValidationState { diff --git a/src/dorkbox/network/connection/connectionType/ConnectionProperties.kt b/src/dorkbox/network/connection/connectionType/ConnectionProperties.kt index 3702c317..8c61e0f3 100644 --- a/src/dorkbox/network/connection/connectionType/ConnectionProperties.kt +++ b/src/dorkbox/network/connection/connectionType/ConnectionProperties.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2020 dorkbox, llc + * + * 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 + * + * http://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. + */ package dorkbox.network.connection.connectionType import dorkbox.network.handshake.UpgradeType diff --git a/src/dorkbox/network/connection/connectionType/ConnectionRule.kt b/src/dorkbox/network/connection/connectionType/ConnectionRule.kt index 0a394d81..f066914e 100644 --- a/src/dorkbox/network/connection/connectionType/ConnectionRule.kt +++ b/src/dorkbox/network/connection/connectionType/ConnectionRule.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2020 dorkbox, llc + * + * 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 + * + * http://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. + */ package dorkbox.network.connection.connectionType import java.math.BigInteger diff --git a/src/dorkbox/network/connection/connectionType/IpConnectionTypeRule.kt b/src/dorkbox/network/connection/connectionType/IpConnectionTypeRule.kt index 6caf2bef..16f2f543 100644 --- a/src/dorkbox/network/connection/connectionType/IpConnectionTypeRule.kt +++ b/src/dorkbox/network/connection/connectionType/IpConnectionTypeRule.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2020 dorkbox, llc + * + * 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 + * + * http://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. + */ package dorkbox.network.connection.connectionType import java.net.InetSocketAddress diff --git a/src/dorkbox/network/connection/ping/PingCanceledException.kt b/src/dorkbox/network/connection/ping/PingCanceledException.kt index 9d5d7f5c..3b8a3580 100644 --- a/src/dorkbox/network/connection/ping/PingCanceledException.kt +++ b/src/dorkbox/network/connection/ping/PingCanceledException.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010 dorkbox, llc + * Copyright 2020 dorkbox, llc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/dorkbox/network/connection/ping/PingFuture.kt b/src/dorkbox/network/connection/ping/PingFuture.kt index 80f05934..4ed30ff3 100644 --- a/src/dorkbox/network/connection/ping/PingFuture.kt +++ b/src/dorkbox/network/connection/ping/PingFuture.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010 dorkbox, llc + * Copyright 2020 dorkbox, llc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/dorkbox/network/connection/ping/PingMessage.kt b/src/dorkbox/network/connection/ping/PingMessage.kt index 7b0ad647..5b06ed9a 100644 --- a/src/dorkbox/network/connection/ping/PingMessage.kt +++ b/src/dorkbox/network/connection/ping/PingMessage.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010 dorkbox, llc + * Copyright 2020 dorkbox, llc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/dorkbox/network/connection/ping/PingTuple.kt b/src/dorkbox/network/connection/ping/PingTuple.kt index 2e81f5c9..2845b22e 100644 --- a/src/dorkbox/network/connection/ping/PingTuple.kt +++ b/src/dorkbox/network/connection/ping/PingTuple.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010 dorkbox, llc + * Copyright 2020 dorkbox, llc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.