This commit is contained in:
2025-11-28 19:37:09 +01:00
parent da70875c81
commit 3dd1c37f09
22 changed files with 81 additions and 15 deletions

View File

@@ -1,4 +1,7 @@
using EonaCat.Connections.Models; // This file is part of the EonaCat project(s) which is released under the Apache License.
// See the LICENSE file or go to https://EonaCat.com/license for full license details.
using EonaCat.Connections.Models;
using EonaCat.Connections.Processors; using EonaCat.Connections.Processors;
using System.Reflection; using System.Reflection;
using System.Text; using System.Text;

View File

@@ -1,4 +1,7 @@
using EonaCat.Connections.Models; // This file is part of the EonaCat project(s) which is released under the Apache License.
// See the LICENSE file or go to https://EonaCat.com/license for full license details.
using EonaCat.Connections.Models;
using System.Reflection; using System.Reflection;
namespace EonaCat.Connections.Server.Example namespace EonaCat.Connections.Server.Example

View File

@@ -1,4 +1,7 @@
using System; // This file is part of the EonaCat project(s) which is released under the Apache License.
// See the LICENSE file or go to https://EonaCat.com/license for full license details.
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;

View File

@@ -1,4 +1,7 @@
namespace EonaCat.Connections // This file is part of the EonaCat project(s) which is released under the Apache License.
// See the LICENSE file or go to https://EonaCat.com/license for full license details.
namespace EonaCat.Connections
{ {
public enum DisconnectReason public enum DisconnectReason
{ {

View File

@@ -1,6 +1,9 @@
using System.Net; using System.Net;
using System.Net.Sockets; using System.Net.Sockets;
// This file is part of the EonaCat project(s) which is released under the Apache License.
// See the LICENSE file or go to https://EonaCat.com/license for full license details.
namespace EonaCat.Connections.EventArguments namespace EonaCat.Connections.EventArguments
{ {
public class ConnectionEventArgs : EventArgs public class ConnectionEventArgs : EventArgs

View File

@@ -1,5 +1,8 @@
using System.Net; using System.Net;
// This file is part of the EonaCat project(s) which is released under the Apache License.
// See the LICENSE file or go to https://EonaCat.com/license for full license details.
namespace EonaCat.Connections namespace EonaCat.Connections
{ {
public class DataReceivedEventArgs : EventArgs public class DataReceivedEventArgs : EventArgs

View File

@@ -1,4 +1,7 @@
namespace EonaCat.Connections.EventArguments // This file is part of the EonaCat project(s) which is released under the Apache License.
// See the LICENSE file or go to https://EonaCat.com/license for full license details.
namespace EonaCat.Connections.EventArguments
{ {
public class ErrorEventArgs : EventArgs public class ErrorEventArgs : EventArgs
{ {

View File

@@ -1,5 +1,8 @@
using System.Net; using System.Net;
// This file is part of the EonaCat project(s) which is released under the Apache License.
// See the LICENSE file or go to https://EonaCat.com/license for full license details.
namespace EonaCat.Connections.EventArguments namespace EonaCat.Connections.EventArguments
{ {
public class PingEventArgs : EventArgs public class PingEventArgs : EventArgs

View File

@@ -1,6 +1,9 @@
using System.Security.Cryptography; using System.Security.Cryptography;
using System.Text; using System.Text;
// This file is part of the EonaCat project(s) which is released under the Apache License.
// See the LICENSE file or go to https://EonaCat.com/license for full license details.
namespace EonaCat.Connections.Helpers namespace EonaCat.Connections.Helpers
{ {
public static class AesKeyExchange public static class AesKeyExchange

View File

@@ -1,5 +1,8 @@
namespace EonaCat.Connections.Helpers namespace EonaCat.Connections.Helpers
{ {
// This file is part of the EonaCat project(s) which is released under the Apache License.
// See the LICENSE file or go to https://EonaCat.com/license for full license details.
internal static class StringHelper internal static class StringHelper
{ {
public static string GetTextBetweenTags(this string value, public static string GetTextBetweenTags(this string value,

View File

@@ -1,5 +1,8 @@
using System.Text; using System.Text;
// This file is part of the EonaCat project(s) which is released under the Apache License.
// See the LICENSE file or go to https://EonaCat.com/license for full license details.
namespace EonaCat.Connections.Helpers namespace EonaCat.Connections.Helpers
{ {
public static class TcpSeparators public static class TcpSeparators

View File

@@ -2,12 +2,15 @@
using System.Net.Security; using System.Net.Security;
using System.Security.Cryptography.X509Certificates; using System.Security.Cryptography.X509Certificates;
// This file is part of the EonaCat project(s) which is released under the Apache License.
// See the LICENSE file or go to https://EonaCat.com/license for full license details.
namespace EonaCat.Connections.Models namespace EonaCat.Connections.Models
{ {
public class Configuration public class Configuration
{ {
public event EventHandler<string> OnLog; public event EventHandler<string> OnLog;
public List<string> TrustedThumbprints = new List<string> { "31446234774e63fed4bc252cf466ac1bed050439", "4e34475f8618f4cbd65a9852b8bf45e740a52fff", "b0d0de15cfe045547aeb403d0e9df8095a88a32a" }; public List<string> TrustedThumbprints = new List<string>();
public bool EnableAutoReconnect { get; set; } = true; public bool EnableAutoReconnect { get; set; } = true;
public int ReconnectDelayInSeconds { get; set; } = 5; public int ReconnectDelayInSeconds { get; set; } = 5;
public int MaxReconnectAttempts { get; set; } = 0; // 0 means unlimited attempts public int MaxReconnectAttempts { get; set; } = 0; // 0 means unlimited attempts

View File

@@ -2,6 +2,9 @@
using System.Net.Sockets; using System.Net.Sockets;
using System.Security.Cryptography; using System.Security.Cryptography;
// This file is part of the EonaCat project(s) which is released under the Apache License.
// See the LICENSE file or go to https://EonaCat.com/license for full license details.
namespace EonaCat.Connections.Models namespace EonaCat.Connections.Models
{ {
public class Connection public class Connection

View File

@@ -1,4 +1,7 @@
namespace EonaCat.Connections.Models // This file is part of the EonaCat project(s) which is released under the Apache License.
// See the LICENSE file or go to https://EonaCat.com/license for full license details.
namespace EonaCat.Connections.Models
{ {
public enum FramingMode public enum FramingMode
{ {

View File

@@ -1,4 +1,7 @@
namespace EonaCat.Connections.Models // This file is part of the EonaCat project(s) which is released under the Apache License.
// See the LICENSE file or go to https://EonaCat.com/license for full license details.
namespace EonaCat.Connections.Models
{ {
public class ProcessedMessage<TData> public class ProcessedMessage<TData>
{ {

View File

@@ -1,4 +1,7 @@
namespace EonaCat.Connections.Models // This file is part of the EonaCat project(s) which is released under the Apache License.
// See the LICENSE file or go to https://EonaCat.com/license for full license details.
namespace EonaCat.Connections.Models
{ {
public class ProcessedTextMessage public class ProcessedTextMessage
{ {

View File

@@ -1,4 +1,7 @@
namespace EonaCat.Connections.Models // This file is part of the EonaCat project(s) which is released under the Apache License.
// See the LICENSE file or go to https://EonaCat.com/license for full license details.
namespace EonaCat.Connections.Models
{ {
public enum ProtocolType public enum ProtocolType
{ {

View File

@@ -1,4 +1,7 @@
namespace EonaCat.Connections // This file is part of the EonaCat project(s) which is released under the Apache License.
// See the LICENSE file or go to https://EonaCat.com/license for full license details.
namespace EonaCat.Connections
{ {
public class Stats public class Stats
{ {

View File

@@ -1,4 +1,7 @@
using EonaCat.Connections.EventArguments; // This file is part of the EonaCat project(s) which is released under the Apache License.
// See the LICENSE file or go to https://EonaCat.com/license for full license details.
using EonaCat.Connections.EventArguments;
using EonaCat.Connections.Helpers; using EonaCat.Connections.Helpers;
using EonaCat.Connections.Models; using EonaCat.Connections.Models;
using System.Buffers; using System.Buffers;

View File

@@ -1,4 +1,7 @@
using EonaCat.Connections.EventArguments; // This file is part of the EonaCat project(s) which is released under the Apache License.
// See the LICENSE file or go to https://EonaCat.com/license for full license details.
using EonaCat.Connections.EventArguments;
using EonaCat.Connections.Helpers; using EonaCat.Connections.Helpers;
using EonaCat.Connections.Models; using EonaCat.Connections.Models;
using System.Buffers; using System.Buffers;

View File

@@ -1,4 +1,7 @@
using EonaCat.Json; // This file is part of the EonaCat project(s) which is released under the Apache License.
// See the LICENSE file or go to https://EonaCat.com/license for full license details.
using EonaCat.Json;
using EonaCat.Json.Linq; using EonaCat.Json.Linq;
using EonaCat.Connections.Models; using EonaCat.Connections.Models;
using System.Collections.Concurrent; using System.Collections.Concurrent;

View File

@@ -1,4 +1,7 @@
using System.Text; // This file is part of the EonaCat project(s) which is released under the Apache License.
// See the LICENSE file or go to https://EonaCat.com/license for full license details.
using System.Text;
namespace EonaCat.Connections.Processors namespace EonaCat.Connections.Processors
{ {