Search Results for

    Show / Hide Table of Contents

    Class TelepathyTransport

    Transport using vis2k's Telepathy library. Currently the default transport for FNNLib. I want to write my own, however to get off the ground, using an existing lib is simpler and more supported.

    Inheritance
    Object
    Transport
    TelepathyTransport
    Namespace: FNNLib.Transports
    Assembly: FNNLib.dll
    Syntax
    public class TelepathyTransport : Transport

    Fields

    | Improve this Doc View Source

    clientMaxMessageSize

    Declaration
    public int clientMaxMessageSize
    Field Value
    Type Description
    Int32
    | Improve this Doc View Source

    noDelay

    Declaration
    public bool noDelay
    Field Value
    Type Description
    Boolean
    | Improve this Doc View Source

    port

    Declaration
    public ushort port
    Field Value
    Type Description
    UInt16
    | Improve this Doc View Source

    serverMaxMessageSize

    Declaration
    public int serverMaxMessageSize
    Field Value
    Type Description
    Int32

    Properties

    | Improve this Doc View Source

    clientConnected

    Declaration
    public override bool clientConnected { get; }
    Property Value
    Type Description
    Boolean
    Overrides
    Transport.clientConnected
    | Improve this Doc View Source

    serverRunning

    Declaration
    public override bool serverRunning { get; }
    Property Value
    Type Description
    Boolean
    Overrides
    Transport.serverRunning
    | Improve this Doc View Source

    supported

    Declaration
    public override bool supported { get; }
    Property Value
    Type Description
    Boolean
    Overrides
    Transport.supported

    Methods

    | Improve this Doc View Source

    ClientConnect(String)

    Declaration
    public override void ClientConnect(string hostname)
    Parameters
    Type Name Description
    String hostname
    Overrides
    Transport.ClientConnect(String)
    | Improve this Doc View Source

    ClientDisconnect()

    Declaration
    public override void ClientDisconnect()
    Overrides
    Transport.ClientDisconnect()
    | Improve this Doc View Source

    ClientSend(ArraySegment<Byte>, Int32)

    Declaration
    public override bool ClientSend(ArraySegment<byte> data, int channel)
    Parameters
    Type Name Description
    ArraySegment<Byte> data
    Int32 channel
    Returns
    Type Description
    Boolean
    Overrides
    Transport.ClientSend(ArraySegment<Byte>, Int32)
    | Improve this Doc View Source

    GetFNNClientID(Int32, Boolean)

    Declaration
    public static ulong GetFNNClientID(int id, bool isServer)
    Parameters
    Type Name Description
    Int32 id
    Boolean isServer
    Returns
    Type Description
    UInt64
    | Improve this Doc View Source

    GetMessage(out UInt64, out ArraySegment<Byte>, out Int32)

    Declaration
    public override NetworkEventType GetMessage(out ulong clientID, out ArraySegment<byte> data, out int channel)
    Parameters
    Type Name Description
    UInt64 clientID
    ArraySegment<Byte> data
    Int32 channel
    Returns
    Type Description
    NetworkEventType
    Overrides
    Transport.GetMessage(out UInt64, out ArraySegment<Byte>, out Int32)
    | Improve this Doc View Source

    ServerDisconnect(UInt64)

    Declaration
    public override void ServerDisconnect(ulong clientID)
    Parameters
    Type Name Description
    UInt64 clientID
    Overrides
    Transport.ServerDisconnect(UInt64)
    | Improve this Doc View Source

    ServerSend(List<UInt64>, ArraySegment<Byte>, Int32, UInt64)

    Declaration
    public override bool ServerSend(List<ulong> clients, ArraySegment<byte> data, int channel, ulong excludedClient = 0UL)
    Parameters
    Type Name Description
    List<UInt64> clients
    ArraySegment<Byte> data
    Int32 channel
    UInt64 excludedClient
    Returns
    Type Description
    Boolean
    Overrides
    Transport.ServerSend(List<UInt64>, ArraySegment<Byte>, Int32, UInt64)
    | Improve this Doc View Source

    ServerShutdown()

    Declaration
    public override void ServerShutdown()
    Overrides
    Transport.ServerShutdown()
    | Improve this Doc View Source

    ServerStart()

    Declaration
    public override void ServerStart()
    Overrides
    Transport.ServerStart()
    | Improve this Doc View Source

    Shutdown()

    Declaration
    public override void Shutdown()
    Overrides
    Transport.Shutdown()
    • Improve this Doc
    • View Source
    In This Article
    Back to top (C) 2020 Reece Mackie. Released under the MIT License.