Search Results for

    Show / Hide Table of Contents

    Peer Class

    Namespace: Riptide
    Assembly: RiptideNetworking.dll

    Provides base functionality for Server and Client.

    public abstract class Peer
    Inheritance
    object
    Peer
    Client
    Server
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()

    Constructors

    Peer(string)

    Initializes the peer.

    Fields

    LogName

    The name to use when logging messages via RiptideLogger.

    defaultTimeout

    The default time (in milliseconds) after which to disconnect if no heartbeats are received.

    useMessageHandlers

    Whether or not the peer should use the built-in message handler system.

    Properties

    HeartbeatInterval

    The interval (in milliseconds) at which to send and expect heartbeats to be received.

    TimeoutTime

    Sets the relevant connections' TimeoutTimes.

    Methods

    CreateMessageHandlersDictionary(byte)

    Builds a dictionary of message IDs and their corresponding message handler methods.

    DecreaseActiveCount()

    Decreases ActiveCount. For use when a Server or Client is stopped.

    FindMessageHandlers()

    Retrieves methods marked with MessageHandlerAttribute.

    Handle(Message, MessageHeader, Connection)

    Handles a message.

    HandleData(object, DataReceivedEventArgs)

    Handles data received by the transport.

    HandleMessages()

    Handles all queued messages.

    IncreaseActiveCount()

    Increases ActiveCount. For use when a new Server or Client is started.

    StartTime()

    Starts tracking how much time has passed.

    StopTime()

    Stops tracking how much time has passed.

    Update()

    Handles any received messages and invokes any delayed events which need to be invoked.

    • Improve this Doc
    • View Source
    • Support Riptide
    In This Article
    Back to top Copyright © Tom Weiland 2022
    Made with DocFX