2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2025-06-27 05:23:13 +00:00

Custom names

This commit is contained in:
2021-11-28 05:28:43 +03:00
parent a25e5a71f2
commit 1166e93ba9
11 changed files with 57 additions and 42 deletions

View File

@ -57,7 +57,7 @@ namespace Esiur.Net.HTTP
return new AsyncReply<bool>(false);
var httpServer = sender.Parent;
var wsSocket = new WSSocket(tcpSocket);
var wsSocket = new WSocket(tcpSocket);
httpServer.Remove(sender);
var iipConnection = new DistributedConnection();

View File

@ -58,6 +58,9 @@ namespace Esiur.Net.IIP
//List<IResource> subscriptions = new List<IResource>();
Dictionary<IResource, List<byte>> subscriptions = new Dictionary<IResource, List<byte>>();// new List<IResource>();
internal KeyList<IResource, DateTime> cache = new();
object subscriptionsLock = new object();
AsyncQueue<DistributedResourceQueueItem> queue = new AsyncQueue<DistributedResourceQueueItem>();

View File

@ -38,7 +38,7 @@ using System.Globalization;
namespace Esiur.Net.Sockets
{
public class WSSocket : ISocket, INetworkReceiver<ISocket>
public class WSocket : ISocket, INetworkReceiver<ISocket>
{
WebsocketPacket pkt_receive = new WebsocketPacket();
WebsocketPacket pkt_send = new WebsocketPacket();
@ -80,7 +80,7 @@ namespace Esiur.Net.Sockets
public INetworkReceiver<ISocket> Receiver { get; set; }
public WSSocket(ISocket socket)
public WSocket(ISocket socket)
{
pkt_send.FIN = true;
pkt_send.Mask = false;