Updated
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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>
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user