Show / Hide Table of Contents

    Class FibulaTcpListener

    Class that represents a TCP listener.

    Inheritance
    System.Object
    FibulaTcpListener
    Implements
    ITcpListener
    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: Fibula.Communications.Listeners
    Assembly: Fibula.Communications.dll
    Syntax
    public class FibulaTcpListener : ITcpListener

    Constructors

    | Improve this Doc View Source

    FibulaTcpListener(IPAddress, UInt16)

    Initializes a new instance of the FibulaTcpListener class.

    Declaration
    public FibulaTcpListener(IPAddress ipAddress, ushort port)
    Parameters
    Type Name Description
    System.Net.IPAddress ipAddress

    The ip address to listen on.

    System.UInt16 port

    The port to listen on.

    Methods

    | Improve this Doc View Source

    AcceptSocketAsync()

    Accepts a pending connection request as an asynchronous operation.

    Declaration
    public Task<Socket> AcceptSocketAsync()
    Returns
    Type Description
    System.Threading.Tasks.Task<System.Net.Sockets.Socket>

    A System.Threading.Tasks.Task representing the asynchronous operation.

    | Improve this Doc View Source

    Start()

    Starts listening for internal connection requests.

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

    Stop()

    Closes the listener.

    Declaration
    public void Stop()

    Implements

    ITcpListener

    Extension Methods

    ObjectExtensions.YieldSingleItem<T>(T)
    ObjectExtensions.GetPropertyValue(Object, String)
    Validate.ThrowIfNull(Object, String)
    • Improve this Doc
    • View Source
    Back to top Copyright © 2018-2020 | The Fibula Project
    Generated using DocFX | Jose L. Nuñez de Caceres et al.