Peer Class
Namespace: Riptide
Assembly: RiptideNetworking.dll
public abstract class Peer
Inherited Members
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. |