Search Results for

    Show / Hide Table of Contents

    Class RufflesTransport

    TODO: Actually implement. This is simply an example of how a RUDP transport would work.

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

    Fields

    | Improve this Doc View Source

    channels

    The channels and their types. The first 3 channels are reserved as defaults.

    Declaration
    public ChannelType[] channels
    Field Value
    Type Description
    ChannelType[]
    | Improve this Doc View Source

    port

    The default port.

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

    serverBindAddress

    The address to bind the server to.

    Declaration
    public string serverBindAddress
    Field Value
    Type Description
    String

    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

    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.