Show / Hide Table of Contents

    Class SocketClientRegistry<TSocketChannel>

    Inheritance
    System.Object
    SocketClientRegistry<TSocketChannel>
    Implements
    ISocketClientRegistry<TSocketChannel>
    System.IDisposable
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Catalyst.Core.Lib.IO.Transport
    Assembly: Catalyst.Core.Lib.dll
    Syntax
    public sealed class SocketClientRegistry<TSocketChannel> : ISocketClientRegistry<TSocketChannel>, IDisposable where TSocketChannel : class, ISocketClient
    Type Parameters
    Name Description
    TSocketChannel

    Constructors

    | Improve this Doc View Source

    SocketClientRegistry(IScheduler)

    Declaration
    public SocketClientRegistry(IScheduler scheduler = null)
    Parameters
    Type Name Description
    IScheduler scheduler

    Properties

    | Improve this Doc View Source

    EventStream

    Declaration
    public IObservable<ISocketClientRegistryEvent> EventStream { get; }
    Property Value
    Type Description
    System.IObservable<ISocketClientRegistryEvent>
    | Improve this Doc View Source

    Registry

    Declaration
    public IDictionary<int, TSocketChannel> Registry { get; }
    Property Value
    Type Description
    System.Collections.Generic.IDictionary<System.Int32, TSocketChannel>

    Methods

    | Improve this Doc View Source

    AddClientToRegistry(Int32, TSocketChannel)

    Declaration
    public bool AddClientToRegistry(int socketHashCode, TSocketChannel socket)
    Parameters
    Type Name Description
    System.Int32 socketHashCode
    TSocketChannel socket
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Dispose()

    Declaration
    public void Dispose()
    | Improve this Doc View Source

    GenerateClientHashCode(IPEndPoint)

    Declaration
    public int GenerateClientHashCode(IPEndPoint socketEndpoint)
    Parameters
    Type Name Description
    System.Net.IPEndPoint socketEndpoint
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    GetClientFromRegistry(Int32)

    Declaration
    public TSocketChannel GetClientFromRegistry(int socketHashCode)
    Parameters
    Type Name Description
    System.Int32 socketHashCode
    Returns
    Type Description
    TSocketChannel
    | Improve this Doc View Source

    GetRegistryType()

    Declaration
    public string GetRegistryType()
    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    RemoveClientFromRegistry(Int32)

    Declaration
    public bool RemoveClientFromRegistry(int socketHashCode)
    Parameters
    Type Name Description
    System.Int32 socketHashCode
    Returns
    Type Description
    System.Boolean

    Implements

    ISocketClientRegistry<TSocketChannel>
    System.IDisposable
    • Improve this Doc
    • View Source
    Back to top Copyright © 2019 Catalyst Network