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
+4 -1
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 System.Reflection;
using System.Text;
+4 -1
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;
namespace EonaCat.Connections.Server.Example
+4 -1
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.Linq;
using System.Text;
+4 -1
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
{
@@ -1,6 +1,9 @@
using System.Net;
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
{
public class ConnectionEventArgs : EventArgs
@@ -1,5 +1,8 @@
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
{
public class DataReceivedEventArgs : EventArgs
@@ -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
{
@@ -1,5 +1,8 @@
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
{
public class PingEventArgs : EventArgs
@@ -1,6 +1,9 @@
using System.Security.Cryptography;
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
{
public static class AesKeyExchange
@@ -1,5 +1,8 @@
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
{
public static string GetTextBetweenTags(this string value,
@@ -1,5 +1,8 @@
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
{
public static class TcpSeparators
+4 -1
View File
@@ -2,12 +2,15 @@
using System.Net.Security;
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
{
public class Configuration
{
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 int ReconnectDelayInSeconds { get; set; } = 5;
public int MaxReconnectAttempts { get; set; } = 0; // 0 means unlimited attempts
+3
View File
@@ -2,6 +2,9 @@
using System.Net.Sockets;
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
{
public class Connection
+4 -1
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
{
@@ -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>
{
@@ -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
{
+4 -1
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
{
+4 -1
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
{
+4 -1
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.Models;
using System.Buffers;
+4 -1
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.Models;
using System.Buffers;
@@ -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.Connections.Models;
using System.Collections.Concurrent;
@@ -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
{