From: js6pak Date: Wed, 31 Mar 2021 11:39:00 +0000 (+0200) Subject: Change root namespace to Impostor.Hazel X-Git-Tag: 1.0.0~6 X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=08ae3a9541bf361796bed81a732d6828aa00a968;p=rhonda%2Fimpostor.hazel.git Change root namespace to Impostor.Hazel --- diff --git a/Hazel.UnitTests/BroadcastTests.cs b/Hazel.UnitTests/BroadcastTests.cs index 53b3139..1dc1b87 100644 --- a/Hazel.UnitTests/BroadcastTests.cs +++ b/Hazel.UnitTests/BroadcastTests.cs @@ -1,9 +1,9 @@ -using Hazel.Udp; -using Microsoft.VisualStudio.TestTools.UnitTesting; +using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Linq; using System.Net; using System.Threading; +using Impostor.Hazel.Udp; namespace Hazel.UnitTests { diff --git a/Hazel.UnitTests/Crypto/AesGcmTest.cs b/Hazel.UnitTests/Crypto/AesGcmTest.cs index 9620973..ed79181 100644 --- a/Hazel.UnitTests/Crypto/AesGcmTest.cs +++ b/Hazel.UnitTests/Crypto/AesGcmTest.cs @@ -1,6 +1,7 @@ -using Hazel.Crypto; using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Text; +using Impostor.Hazel; +using Impostor.Hazel.Crypto; namespace Hazel.UnitTests.Crypto { diff --git a/Hazel.UnitTests/Crypto/X25519Tests.cs b/Hazel.UnitTests/Crypto/X25519Tests.cs index 8d9a583..2e9f4c8 100644 --- a/Hazel.UnitTests/Crypto/X25519Tests.cs +++ b/Hazel.UnitTests/Crypto/X25519Tests.cs @@ -2,9 +2,10 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -using Hazel.Crypto; using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Security.Cryptography; +using Impostor.Hazel; +using Impostor.Hazel.Crypto; namespace Hazel.UnitTests.Crypto { diff --git a/Hazel.UnitTests/Dtls/AesGcmRecordProtectedTests.cs b/Hazel.UnitTests/Dtls/AesGcmRecordProtectedTests.cs index 941f849..04795e4 100644 --- a/Hazel.UnitTests/Dtls/AesGcmRecordProtectedTests.cs +++ b/Hazel.UnitTests/Dtls/AesGcmRecordProtectedTests.cs @@ -1,7 +1,8 @@ -using Hazel.Dtls; using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Security.Cryptography; using System.Text; +using Impostor.Hazel; +using Impostor.Hazel.Dtls; namespace Hazel.UnitTests.Dtls { diff --git a/Hazel.UnitTests/Dtls/ConnectionTests.cs b/Hazel.UnitTests/Dtls/ConnectionTests.cs index bc8207f..99ca07e 100644 --- a/Hazel.UnitTests/Dtls/ConnectionTests.cs +++ b/Hazel.UnitTests/Dtls/ConnectionTests.cs @@ -1,12 +1,14 @@ -using Hazel.Dtls; -using Hazel.Udp; -using Hazel.Udp.FewerThreads; using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Net; using System.Security.Cryptography; using System.Security.Cryptography.X509Certificates; using System.Threading; +using Impostor.Hazel; +using Impostor.Hazel.Dtls; +using Impostor.Hazel.FewerThreads; +using Impostor.Hazel.Udp; +using Impostor.Hazel.UPnP; namespace Hazel.UnitTests.Dtls { diff --git a/Hazel.UnitTests/Dtls/X25519EcdheRsaSha256Tests.cs b/Hazel.UnitTests/Dtls/X25519EcdheRsaSha256Tests.cs index 33cd6dc..949e85c 100644 --- a/Hazel.UnitTests/Dtls/X25519EcdheRsaSha256Tests.cs +++ b/Hazel.UnitTests/Dtls/X25519EcdheRsaSha256Tests.cs @@ -1,6 +1,7 @@ -using Hazel.Dtls; using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Security.Cryptography; +using Impostor.Hazel; +using Impostor.Hazel.Dtls; namespace Hazel.UnitTests.Dtls { diff --git a/Hazel.UnitTests/MessageReaderTests.cs b/Hazel.UnitTests/MessageReaderTests.cs index ef4c208..34f7074 100644 --- a/Hazel.UnitTests/MessageReaderTests.cs +++ b/Hazel.UnitTests/MessageReaderTests.cs @@ -1,6 +1,7 @@ using System; using System.IO; using System.Linq; +using Impostor.Hazel; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Hazel.UnitTests diff --git a/Hazel.UnitTests/MessageWriterTests.cs b/Hazel.UnitTests/MessageWriterTests.cs index b292a5d..1cf26c7 100644 --- a/Hazel.UnitTests/MessageWriterTests.cs +++ b/Hazel.UnitTests/MessageWriterTests.cs @@ -1,5 +1,6 @@ using System; using System.IO; +using Impostor.Hazel; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Hazel.UnitTests diff --git a/Hazel.UnitTests/StatisticsTests.cs b/Hazel.UnitTests/StatisticsTests.cs index 2afd179..ee9d253 100644 --- a/Hazel.UnitTests/StatisticsTests.cs +++ b/Hazel.UnitTests/StatisticsTests.cs @@ -1,4 +1,5 @@ using System; +using Impostor.Hazel; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Hazel.UnitTests diff --git a/Hazel.UnitTests/StressTests.cs b/Hazel.UnitTests/StressTests.cs index b670edc..590d1d1 100644 --- a/Hazel.UnitTests/StressTests.cs +++ b/Hazel.UnitTests/StressTests.cs @@ -2,7 +2,7 @@ using System.Net; using System.Threading; using System.Threading.Tasks; -using Hazel.Udp; +using Impostor.Hazel.Udp; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Hazel.UnitTests diff --git a/Hazel.UnitTests/TestHelper.cs b/Hazel.UnitTests/TestHelper.cs index 082854e..df22a19 100644 --- a/Hazel.UnitTests/TestHelper.cs +++ b/Hazel.UnitTests/TestHelper.cs @@ -5,7 +5,9 @@ using Hazel; using System.Net; using System.Threading; using System.Diagnostics; -using Hazel.Udp.FewerThreads; +using Impostor.Hazel; +using Impostor.Hazel.FewerThreads; +using DataReceivedEventArgs = Impostor.Hazel.DataReceivedEventArgs; namespace Hazel.UnitTests { diff --git a/Hazel.UnitTests/TestLogger.cs b/Hazel.UnitTests/TestLogger.cs index a6cd0fb..13d0a6d 100644 --- a/Hazel.UnitTests/TestLogger.cs +++ b/Hazel.UnitTests/TestLogger.cs @@ -3,6 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; +using Impostor.Hazel.UPnP; namespace Hazel.UnitTests { diff --git a/Hazel.UnitTests/ThreadLimitedUdpConnectionTests.cs b/Hazel.UnitTests/ThreadLimitedUdpConnectionTests.cs index a65355c..da71fd6 100644 --- a/Hazel.UnitTests/ThreadLimitedUdpConnectionTests.cs +++ b/Hazel.UnitTests/ThreadLimitedUdpConnectionTests.cs @@ -2,9 +2,11 @@ using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Net; using System.Threading; -using Hazel.Udp; -using Hazel.Udp.FewerThreads; using System.Net.Sockets; +using Impostor.Hazel; +using Impostor.Hazel.FewerThreads; +using Impostor.Hazel.Udp; +using Impostor.Hazel.UPnP; namespace Hazel.UnitTests { diff --git a/Hazel.UnitTests/UPnPTests.cs b/Hazel.UnitTests/UPnPTests.cs index 44f6aea..e9c4738 100644 --- a/Hazel.UnitTests/UPnPTests.cs +++ b/Hazel.UnitTests/UPnPTests.cs @@ -1,5 +1,5 @@ using System; -using Hazel.UPnP; +using Impostor.Hazel.UPnP; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Hazel.UnitTests diff --git a/Hazel.UnitTests/UdpConnectionTestHarness.cs b/Hazel.UnitTests/UdpConnectionTestHarness.cs index 8414e0c..b1187c2 100644 --- a/Hazel.UnitTests/UdpConnectionTestHarness.cs +++ b/Hazel.UnitTests/UdpConnectionTestHarness.cs @@ -1,9 +1,10 @@ -using Hazel.Udp; -using System; +using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; +using Impostor.Hazel; +using Impostor.Hazel.Udp; namespace Hazel.UnitTests { diff --git a/Hazel.UnitTests/UdpConnectionTests.cs b/Hazel.UnitTests/UdpConnectionTests.cs index 1b3fb27..3ecc3b7 100644 --- a/Hazel.UnitTests/UdpConnectionTests.cs +++ b/Hazel.UnitTests/UdpConnectionTests.cs @@ -2,8 +2,9 @@ using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Net; using System.Threading; -using Hazel.Udp; using System.Net.Sockets; +using Impostor.Hazel; +using Impostor.Hazel.Udp; namespace Hazel.UnitTests { diff --git a/Hazel.UnitTests/UdpReliabilityTests.cs b/Hazel.UnitTests/UdpReliabilityTests.cs index ede7698..0b22335 100644 --- a/Hazel.UnitTests/UdpReliabilityTests.cs +++ b/Hazel.UnitTests/UdpReliabilityTests.cs @@ -1,6 +1,6 @@ using System; using System.Collections.Generic; -using Hazel.Udp; +using Impostor.Hazel; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Hazel.UnitTests diff --git a/Hazel.UnitTests/UnityUdpConnectionTests.cs b/Hazel.UnitTests/UnityUdpConnectionTests.cs index 83f62fc..25733b6 100644 --- a/Hazel.UnitTests/UnityUdpConnectionTests.cs +++ b/Hazel.UnitTests/UnityUdpConnectionTests.cs @@ -2,8 +2,9 @@ using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Net; using System.Threading; -using Hazel.Udp; using System.Net.Sockets; +using Impostor.Hazel; +using Impostor.Hazel.Udp; namespace Hazel.UnitTests { diff --git a/Hazel/ByteSpan.cs b/Hazel/ByteSpan.cs index 506b153..e4c2690 100644 --- a/Hazel/ByteSpan.cs +++ b/Hazel/ByteSpan.cs @@ -1,6 +1,6 @@ using System; -namespace Hazel +namespace Impostor.Hazel { /// /// This is a minimal implementation of `System.Span` in .NET 5.0 diff --git a/Hazel/ByteSpanExtensions.cs b/Hazel/ByteSpanExtensions.cs index 3a9d1ac..07893ef 100644 --- a/Hazel/ByteSpanExtensions.cs +++ b/Hazel/ByteSpanExtensions.cs @@ -1,4 +1,4 @@ -namespace Hazel +namespace Impostor.Hazel { /// /// Extension functions for (en/de)coding integer values diff --git a/Hazel/Connection.cs b/Hazel/Connection.cs index d1194cd..6e6bd61 100644 --- a/Hazel/Connection.cs +++ b/Hazel/Connection.cs @@ -1,12 +1,7 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Net.Sockets; using System.Net; -using System.Threading; -namespace Hazel +namespace Impostor.Hazel { /// /// Base class for all connections. diff --git a/Hazel/ConnectionListener.cs b/Hazel/ConnectionListener.cs index aa830c1..b83f968 100644 --- a/Hazel/ConnectionListener.cs +++ b/Hazel/ConnectionListener.cs @@ -1,6 +1,6 @@ using System; -namespace Hazel +namespace Impostor.Hazel { /// /// Base class for all connection listeners. diff --git a/Hazel/ConnectionState.cs b/Hazel/ConnectionState.cs index 5d3f5c9..5dd7c6a 100644 --- a/Hazel/ConnectionState.cs +++ b/Hazel/ConnectionState.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - -namespace Hazel +namespace Impostor.Hazel { /// /// Represents the state a is currently in. diff --git a/Hazel/ConnectionStatistics.cs b/Hazel/ConnectionStatistics.cs index 32ad0a0..b0524cf 100644 --- a/Hazel/ConnectionStatistics.cs +++ b/Hazel/ConnectionStatistics.cs @@ -1,11 +1,6 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading; +using System.Threading; - -namespace Hazel +namespace Impostor.Hazel { /// /// Holds statistics about the traffic through a . diff --git a/Hazel/Crypto/AesGcm.cs b/Hazel/Crypto/AesGcm.cs index 51ec281..3835a73 100644 --- a/Hazel/Crypto/AesGcm.cs +++ b/Hazel/Crypto/AesGcm.cs @@ -2,7 +2,7 @@ using System; using System.Diagnostics; using System.Security.Cryptography; -namespace Hazel.Crypto +namespace Impostor.Hazel.Crypto { /// /// Implementation of AEAD_AES128_GCM based on: diff --git a/Hazel/Crypto/Const.cs b/Hazel/Crypto/Const.cs index 4dfef47..93edc89 100644 --- a/Hazel/Crypto/Const.cs +++ b/Hazel/Crypto/Const.cs @@ -1,6 +1,6 @@ using System.Diagnostics; -namespace Hazel.Crypto +namespace Impostor.Hazel.Crypto { public static class Const { diff --git a/Hazel/Crypto/SpanCryptoExtensions.cs b/Hazel/Crypto/SpanCryptoExtensions.cs index 03164ec..2593d9d 100644 --- a/Hazel/Crypto/SpanCryptoExtensions.cs +++ b/Hazel/Crypto/SpanCryptoExtensions.cs @@ -1,7 +1,7 @@ using System; using System.Security.Cryptography; -namespace Hazel.Crypto +namespace Impostor.Hazel.Crypto { public static class SpanCryptoExtensions { diff --git a/Hazel/Crypto/X25519.cs b/Hazel/Crypto/X25519.cs index 3f4624b..de482db 100644 --- a/Hazel/Crypto/X25519.cs +++ b/Hazel/Crypto/X25519.cs @@ -1,7 +1,7 @@ using System; using System.Diagnostics; -namespace Hazel.Crypto +namespace Impostor.Hazel.Crypto { /// /// The x25519 key agreement algorithm diff --git a/Hazel/DataReceivedEventArgs.cs b/Hazel/DataReceivedEventArgs.cs index 35609fc..7605746 100644 --- a/Hazel/DataReceivedEventArgs.cs +++ b/Hazel/DataReceivedEventArgs.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - -namespace Hazel +namespace Impostor.Hazel { public struct DataReceivedEventArgs { diff --git a/Hazel/DisconnectedEventArgs.cs b/Hazel/DisconnectedEventArgs.cs index a7fb05c..29aed23 100644 --- a/Hazel/DisconnectedEventArgs.cs +++ b/Hazel/DisconnectedEventArgs.cs @@ -1,6 +1,6 @@ using System; -namespace Hazel +namespace Impostor.Hazel { public class DisconnectedEventArgs : EventArgs { diff --git a/Hazel/Dtls/AesGcmRecordProtection.cs b/Hazel/Dtls/AesGcmRecordProtection.cs index 65df39e..619a490 100644 --- a/Hazel/Dtls/AesGcmRecordProtection.cs +++ b/Hazel/Dtls/AesGcmRecordProtection.cs @@ -1,8 +1,7 @@ -using Hazel.Crypto; -using System; using System.Diagnostics; +using Impostor.Hazel.Crypto; -namespace Hazel.Dtls +namespace Impostor.Hazel.Dtls { /// /// *_AES_128_GCM_* cipher suite diff --git a/Hazel/Dtls/DtlsConnectionListener.cs b/Hazel/Dtls/DtlsConnectionListener.cs index 330fd73..c3cd51c 100644 --- a/Hazel/Dtls/DtlsConnectionListener.cs +++ b/Hazel/Dtls/DtlsConnectionListener.cs @@ -7,10 +7,11 @@ using System.Net; using System.Security.Cryptography; using System.Security.Cryptography.X509Certificates; using System.Threading; -using Hazel.Udp.FewerThreads; -using Hazel.Crypto; +using Impostor.Hazel.Crypto; +using Impostor.Hazel.FewerThreads; +using Impostor.Hazel.UPnP; -namespace Hazel.Dtls +namespace Impostor.Hazel.Dtls { /// /// Listens for new UDP-DTLS connections and creates UdpConnections for them. diff --git a/Hazel/Dtls/DtlsUnityConnection.cs b/Hazel/Dtls/DtlsUnityConnection.cs index eed6ba7..bcd9ef2 100644 --- a/Hazel/Dtls/DtlsUnityConnection.cs +++ b/Hazel/Dtls/DtlsUnityConnection.cs @@ -1,5 +1,3 @@ -using Hazel.Crypto; -using Hazel.Udp; using System; using System.Collections.Generic; using System.Diagnostics; @@ -7,8 +5,11 @@ using System.IO; using System.Net; using System.Security.Cryptography; using System.Security.Cryptography.X509Certificates; +using Impostor.Hazel.Crypto; +using Impostor.Hazel.Udp; +using Impostor.Hazel.UPnP; -namespace Hazel.Dtls +namespace Impostor.Hazel.Dtls { /// /// Connects to a UDP-DTLS server diff --git a/Hazel/Dtls/Handshake.cs b/Hazel/Dtls/Handshake.cs index d8bde25..1942f1a 100644 --- a/Hazel/Dtls/Handshake.cs +++ b/Hazel/Dtls/Handshake.cs @@ -1,11 +1,10 @@ using System; -using System.Collections.Generic; using System.Diagnostics; using System.Net; using System.Security.Cryptography; using System.Security.Cryptography.X509Certificates; -namespace Hazel.Dtls +namespace Impostor.Hazel.Dtls { /// /// Handshake message type diff --git a/Hazel/Dtls/IHandshakeCipherSuite.cs b/Hazel/Dtls/IHandshakeCipherSuite.cs index eedd977..37422ee 100644 --- a/Hazel/Dtls/IHandshakeCipherSuite.cs +++ b/Hazel/Dtls/IHandshakeCipherSuite.cs @@ -1,6 +1,6 @@ using System; -namespace Hazel.Dtls +namespace Impostor.Hazel.Dtls { /// /// DTLS cipher suite interface for the handshake portion of diff --git a/Hazel/Dtls/IRecordProtection.cs b/Hazel/Dtls/IRecordProtection.cs index cbee1b0..8104990 100644 --- a/Hazel/Dtls/IRecordProtection.cs +++ b/Hazel/Dtls/IRecordProtection.cs @@ -1,6 +1,6 @@ using System; -namespace Hazel.Dtls +namespace Impostor.Hazel.Dtls { /// /// DTLS cipher suite interface for protection of record payload. diff --git a/Hazel/Dtls/NullRecordProtection.cs b/Hazel/Dtls/NullRecordProtection.cs index 76fa132..7e5d60e 100644 --- a/Hazel/Dtls/NullRecordProtection.cs +++ b/Hazel/Dtls/NullRecordProtection.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Hazel.Dtls +namespace Impostor.Hazel.Dtls { /// /// Passthrough record protection implementaion diff --git a/Hazel/Dtls/PrfSha256.cs b/Hazel/Dtls/PrfSha256.cs index 1fa7f17..cbab495 100644 --- a/Hazel/Dtls/PrfSha256.cs +++ b/Hazel/Dtls/PrfSha256.cs @@ -1,7 +1,7 @@ -using System.Text; using System.Security.Cryptography; +using System.Text; -namespace Hazel.Dtls +namespace Impostor.Hazel.Dtls { /// /// Common Psuedorandom Function labels for TLS diff --git a/Hazel/Dtls/Record.cs b/Hazel/Dtls/Record.cs index 27f65bb..c3702dd 100644 --- a/Hazel/Dtls/Record.cs +++ b/Hazel/Dtls/Record.cs @@ -1,4 +1,4 @@ -namespace Hazel.Dtls +namespace Impostor.Hazel.Dtls { /// /// DTLS version constants diff --git a/Hazel/Dtls/X25519EcdheRsaSha256.cs b/Hazel/Dtls/X25519EcdheRsaSha256.cs index f567252..97835fc 100644 --- a/Hazel/Dtls/X25519EcdheRsaSha256.cs +++ b/Hazel/Dtls/X25519EcdheRsaSha256.cs @@ -1,9 +1,9 @@ -using Hazel.Crypto; using System; using System.Diagnostics; using System.Security.Cryptography; +using Impostor.Hazel.Crypto; -namespace Hazel.Dtls +namespace Impostor.Hazel.Dtls { /// /// ECDHE_RSA_*_256 cipher suite diff --git a/Hazel/FewerThreads/HazelThreadPool.cs b/Hazel/FewerThreads/HazelThreadPool.cs index fb36b00..97a37d8 100644 --- a/Hazel/FewerThreads/HazelThreadPool.cs +++ b/Hazel/FewerThreads/HazelThreadPool.cs @@ -1,11 +1,6 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading; -using System.Threading.Tasks; +using System.Threading; -namespace Hazel +namespace Impostor.Hazel.FewerThreads { internal class HazelThreadPool { diff --git a/Hazel/FewerThreads/ThreadLimitedUdpConnectionListener.cs b/Hazel/FewerThreads/ThreadLimitedUdpConnectionListener.cs index deda91d..1cb4fd8 100644 --- a/Hazel/FewerThreads/ThreadLimitedUdpConnectionListener.cs +++ b/Hazel/FewerThreads/ThreadLimitedUdpConnectionListener.cs @@ -1,11 +1,12 @@ using System; using System.Collections.Concurrent; -using System.Collections.Generic; using System.Net; using System.Net.Sockets; using System.Threading; +using Impostor.Hazel.Udp; +using Impostor.Hazel.UPnP; -namespace Hazel.Udp.FewerThreads +namespace Impostor.Hazel.FewerThreads { /// /// Listens for new UDP connections and creates UdpConnections for them. diff --git a/Hazel/FewerThreads/ThreadLimitedUdpServerConnection.cs b/Hazel/FewerThreads/ThreadLimitedUdpServerConnection.cs index 2f57794..efa554d 100644 --- a/Hazel/FewerThreads/ThreadLimitedUdpServerConnection.cs +++ b/Hazel/FewerThreads/ThreadLimitedUdpServerConnection.cs @@ -1,7 +1,8 @@ using System; using System.Net; +using Impostor.Hazel.Udp; -namespace Hazel.Udp.FewerThreads +namespace Impostor.Hazel.FewerThreads { /// /// Represents a servers's connection to a client that uses the UDP protocol. diff --git a/Hazel/Hazel.csproj b/Hazel/Hazel.csproj index 4939380..b261534 100644 --- a/Hazel/Hazel.csproj +++ b/Hazel/Hazel.csproj @@ -4,6 +4,7 @@ true net5.0 HAZEL_BAG + Impostor.Hazel diff --git a/Hazel/HazelException.cs b/Hazel/HazelException.cs index c0db05a..8c6fc3c 100644 --- a/Hazel/HazelException.cs +++ b/Hazel/HazelException.cs @@ -1,9 +1,6 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -namespace Hazel +namespace Impostor.Hazel { /// /// Wrapper for exceptions thrown from Hazel. diff --git a/Hazel/IPMode.cs b/Hazel/IPMode.cs index 04c8c38..5eb6679 100644 --- a/Hazel/IPMode.cs +++ b/Hazel/IPMode.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - - -namespace Hazel +namespace Impostor.Hazel { /// /// Represents the IP version that a connection or listener will use. diff --git a/Hazel/IRecyclable.cs b/Hazel/IRecyclable.cs index 3e9769e..69be122 100644 --- a/Hazel/IRecyclable.cs +++ b/Hazel/IRecyclable.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - -namespace Hazel +namespace Impostor.Hazel { /// /// Interface for all items that can be returned to an object pool. diff --git a/Hazel/MessageReader.cs b/Hazel/MessageReader.cs index 4e3b24e..0c084ca 100644 --- a/Hazel/MessageReader.cs +++ b/Hazel/MessageReader.cs @@ -1,10 +1,9 @@ using System; using System.IO; -using System.Linq; using System.Runtime.CompilerServices; using System.Text; -namespace Hazel +namespace Impostor.Hazel { public class MessageReader : IRecyclable { diff --git a/Hazel/MessageWriter.cs b/Hazel/MessageWriter.cs index 0cabb66..7de621a 100644 --- a/Hazel/MessageWriter.cs +++ b/Hazel/MessageWriter.cs @@ -1,9 +1,8 @@ using System; using System.Collections.Generic; -using System.IO; using System.Text; -namespace Hazel +namespace Impostor.Hazel { /// public class MessageWriter : IRecyclable diff --git a/Hazel/NetworkConnection.cs b/Hazel/NetworkConnection.cs index 9799509..3b07174 100644 --- a/Hazel/NetworkConnection.cs +++ b/Hazel/NetworkConnection.cs @@ -1,11 +1,6 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Net; -using System.Text; - -namespace Hazel +namespace Impostor.Hazel { public enum HazelInternalErrors { diff --git a/Hazel/NetworkConnectionListener.cs b/Hazel/NetworkConnectionListener.cs index af26c4c..e1d7ffa 100644 --- a/Hazel/NetworkConnectionListener.cs +++ b/Hazel/NetworkConnectionListener.cs @@ -1,11 +1,6 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Net; -using System.Text; +using System.Net; - -namespace Hazel +namespace Impostor.Hazel { /// /// Abstract base class for a for network based connections. diff --git a/Hazel/NewConnectionEventArgs.cs b/Hazel/NewConnectionEventArgs.cs index 68fd37f..e606e3f 100644 --- a/Hazel/NewConnectionEventArgs.cs +++ b/Hazel/NewConnectionEventArgs.cs @@ -1,4 +1,4 @@ -namespace Hazel +namespace Impostor.Hazel { public struct NewConnectionEventArgs { diff --git a/Hazel/ObjectPool.cs b/Hazel/ObjectPool.cs index 510e55a..6d6ce6e 100644 --- a/Hazel/ObjectPool.cs +++ b/Hazel/ObjectPool.cs @@ -1,9 +1,8 @@ using System; using System.Collections.Concurrent; -using System.Collections.Generic; using System.Threading; -namespace Hazel +namespace Impostor.Hazel { /// /// A fairly simple object pool for items that will be created a lot. diff --git a/Hazel/SendOption.cs b/Hazel/SendOption.cs index c2ffb22..cd32c95 100644 --- a/Hazel/SendOption.cs +++ b/Hazel/SendOption.cs @@ -1,9 +1,6 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -namespace Hazel +namespace Impostor.Hazel { /// /// Specifies how a message should be sent between connections. diff --git a/Hazel/UPnP/ILogger.cs b/Hazel/UPnP/ILogger.cs index 84f2cc0..67bacbe 100644 --- a/Hazel/UPnP/ILogger.cs +++ b/Hazel/UPnP/ILogger.cs @@ -1,10 +1,6 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -namespace Hazel +namespace Impostor.Hazel.UPnP { public interface ILogger { diff --git a/Hazel/UPnP/NetUtility.cs b/Hazel/UPnP/NetUtility.cs index a6a0c5c..173aa66 100644 --- a/Hazel/UPnP/NetUtility.cs +++ b/Hazel/UPnP/NetUtility.cs @@ -3,7 +3,7 @@ using System.Net; using System.Net.NetworkInformation; using System.Net.Sockets; -namespace Hazel.UPnP +namespace Impostor.Hazel.UPnP { internal class NetUtility { diff --git a/Hazel/UPnP/UPnPHelper.cs b/Hazel/UPnP/UPnPHelper.cs index 771709e..5b44e0d 100644 --- a/Hazel/UPnP/UPnPHelper.cs +++ b/Hazel/UPnP/UPnPHelper.cs @@ -1,11 +1,11 @@ using System; using System.IO; -using System.Xml; using System.Net; using System.Net.Sockets; using System.Threading; +using System.Xml; -namespace Hazel.UPnP +namespace Impostor.Hazel.UPnP { /// /// Status of the UPnP capabilities diff --git a/Hazel/Udp/SendOptionInternal.cs b/Hazel/Udp/SendOptionInternal.cs index 74786d8..c0c4e21 100644 --- a/Hazel/Udp/SendOptionInternal.cs +++ b/Hazel/Udp/SendOptionInternal.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - - -namespace Hazel.Udp +namespace Impostor.Hazel.Udp { /// /// Extra internal states for SendOption enumeration when using UDP. diff --git a/Hazel/Udp/UdpBroadcastListener.cs b/Hazel/Udp/UdpBroadcastListener.cs index 13b8d0b..ed7b68d 100644 --- a/Hazel/Udp/UdpBroadcastListener.cs +++ b/Hazel/Udp/UdpBroadcastListener.cs @@ -3,9 +3,8 @@ using System.Collections.Generic; using System.Net; using System.Net.Sockets; using System.Text; -using System.Threading; -namespace Hazel.Udp +namespace Impostor.Hazel.Udp { public class BroadcastPacket { diff --git a/Hazel/Udp/UdpBroadcaster.cs b/Hazel/Udp/UdpBroadcaster.cs index 0c81bf9..5fa1cca 100644 --- a/Hazel/Udp/UdpBroadcaster.cs +++ b/Hazel/Udp/UdpBroadcaster.cs @@ -3,7 +3,7 @@ using System.Net; using System.Net.Sockets; using System.Text; -namespace Hazel.Udp +namespace Impostor.Hazel.Udp { /// public class UdpBroadcaster : IDisposable diff --git a/Hazel/Udp/UdpClientConnection.cs b/Hazel/Udp/UdpClientConnection.cs index 072bc6d..5a92f4c 100644 --- a/Hazel/Udp/UdpClientConnection.cs +++ b/Hazel/Udp/UdpClientConnection.cs @@ -3,8 +3,7 @@ using System.Net; using System.Net.Sockets; using System.Threading; - -namespace Hazel.Udp +namespace Impostor.Hazel.Udp { /// /// Represents a client's connection to a server that uses the UDP protocol. diff --git a/Hazel/Udp/UdpConnection.KeepAlive.cs b/Hazel/Udp/UdpConnection.KeepAlive.cs index 9ae7697..a145534 100644 --- a/Hazel/Udp/UdpConnection.KeepAlive.cs +++ b/Hazel/Udp/UdpConnection.KeepAlive.cs @@ -3,8 +3,7 @@ using System.Collections.Concurrent; using System.Diagnostics; using System.Threading; - -namespace Hazel.Udp +namespace Impostor.Hazel.Udp { partial class UdpConnection { diff --git a/Hazel/Udp/UdpConnection.Reliable.cs b/Hazel/Udp/UdpConnection.Reliable.cs index 83feabd..d4f16be 100644 --- a/Hazel/Udp/UdpConnection.Reliable.cs +++ b/Hazel/Udp/UdpConnection.Reliable.cs @@ -2,12 +2,9 @@ using System.Collections.Concurrent; using System.Collections.Generic; using System.Diagnostics; -using System.Linq; -using System.Text; using System.Threading; - -namespace Hazel.Udp +namespace Impostor.Hazel.Udp { partial class UdpConnection { diff --git a/Hazel/Udp/UdpConnection.cs b/Hazel/Udp/UdpConnection.cs index b57b3a4..d3c1d29 100644 --- a/Hazel/Udp/UdpConnection.cs +++ b/Hazel/Udp/UdpConnection.cs @@ -1,7 +1,7 @@ using System; using System.Net.Sockets; -namespace Hazel.Udp +namespace Impostor.Hazel.Udp { /// /// Represents a connection that uses the UDP protocol. diff --git a/Hazel/Udp/UdpConnectionListener.cs b/Hazel/Udp/UdpConnectionListener.cs index 8dbec1b..a74da2a 100644 --- a/Hazel/Udp/UdpConnectionListener.cs +++ b/Hazel/Udp/UdpConnectionListener.cs @@ -4,7 +4,7 @@ using System.Net; using System.Net.Sockets; using System.Threading; -namespace Hazel.Udp +namespace Impostor.Hazel.Udp { /// /// Listens for new UDP connections and creates UdpConnections for them. diff --git a/Hazel/Udp/UdpServerConnection.cs b/Hazel/Udp/UdpServerConnection.cs index f348adb..00d5e70 100644 --- a/Hazel/Udp/UdpServerConnection.cs +++ b/Hazel/Udp/UdpServerConnection.cs @@ -1,7 +1,7 @@ using System; using System.Net; -namespace Hazel.Udp +namespace Impostor.Hazel.Udp { /// /// Represents a servers's connection to a client that uses the UDP protocol. diff --git a/Hazel/Udp/UnityUdpClientConnection.cs b/Hazel/Udp/UnityUdpClientConnection.cs index 81d6d1b..76bc342 100644 --- a/Hazel/Udp/UnityUdpClientConnection.cs +++ b/Hazel/Udp/UnityUdpClientConnection.cs @@ -3,8 +3,7 @@ using System.Net; using System.Net.Sockets; using System.Threading; - -namespace Hazel.Udp +namespace Impostor.Hazel.Udp { /// /// Unity doesn't always get along with thread pools well, so this interface will hopefully suit that case better.