Show / Hide Table of Contents

    Interface ISocketClientRegistry<TSocketChannel>

    Namespace: Catalyst.Abstractions.IO.Transport
    Assembly: Catalyst.Abstractions.dll
    Syntax
    public interface ISocketClientRegistry<TSocketChannel>
    
        where TSocketChannel : class, ISocketClient
    Type Parameters
    Name Description
    TSocketChannel

    Properties

    | Improve this Doc View Source

    EventStream

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

    Registry

    Declaration
    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)

    Adds an active ISocketClient to the registry.

    Declaration
    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

    GenerateClientHashCode(IPEndPoint)

    Generates a hashcode from the socket endpoint so we can find it in dict.

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

    GetClientFromRegistry(Int32)

    Tries to get a socket client from registry.

    Declaration
    TSocketChannel GetClientFromRegistry(int socketHashCode)
    Parameters
    Type Name Description
    System.Int32 socketHashCode
    Returns
    Type Description
    TSocketChannel
    Exceptions
    Type Condition
    System.Collections.Generic.KeyNotFoundException
    | Improve this Doc View Source

    GetRegistryType()

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

    RemoveClientFromRegistry(Int32)

    Removes a ISocketClient from registry.

    Declaration
    bool RemoveClientFromRegistry(int socketHashCode)
    Parameters
    Type Name Description
    System.Int32 socketHashCode
    Returns
    Type Description
    System.Boolean
    • Improve this Doc
    • View Source
    Back to top Copyright © 2019 Catalyst Network