Riptide Namespace
Provides all core functionality essential for setting up a server-client connection with Riptide.
Classes
Client | A client that can connect to a Server. |
ClientConnectedEventArgs | Contains event data for when a non-local client connects to the server. |
ClientDisconnectedEventArgs | Contains event data for when a non-local client disconnects from the server. |
Connection | |
ConnectionFailedEventArgs | Contains event data for when a connection attempt to a server fails. |
DisconnectedEventArgs | Contains event data for when the client disconnects from a server. |
DuplicateHandlerException | The exception that is thrown when multiple methods with MessageHandlerAttributes are set to handle messages with the same ID and have the same method signature. |
InsufficientCapacityException | The exception that is thrown when a Message does not contain enough unwritten bits to perform an operation. |
InvalidHandlerSignatureException | The exception that is thrown when a method with a MessageHandlerAttribute does not have an acceptable message handler method signature (either Server.MessageHandler or Client.MessageHandler). |
Message | Provides functionality for converting data to bytes and vice versa. |
MessageHandlerAttribute | Specifies a method as the message handler for messages with the given ID. |
MessageReceivedEventArgs | Contains event data for when a message is received. |
MessageRelayFilter | Provides functionality for enabling/disabling automatic message relaying by message type. |
NonStaticHandlerException | The exception that is thrown when a method with a MessageHandlerAttribute is not marked as static. |
Peer | |
Server | A server that can accept connections from Clients. |
ServerConnectedEventArgs | Contains event data for when a client connects to the server. |
ServerConnectionFailedEventArgs | Contains event data for when a connection fails to be fully established. |
ServerDisconnectedEventArgs | Contains event data for when a client disconnects from the server. |
Interfaces
IMessageSerializable | Represents a type that can be added to and retrieved from messages using the AddSerializable<T>(T) and GetSerializable<T>() methods. |
Enums
DisconnectReason | The reason for a disconnection. |
MessageSendMode | The send mode of a Message. |
RejectReason | The reason the connection attempt was rejected. |
Delegates
Client.MessageHandler | Encapsulates a method that handles a message from a server. |
Server.ConnectionAttemptHandler | Encapsulates a method that determines whether or not to accept a client's connection attempt. |
Server.MessageHandler | Encapsulates a method that handles a message from a client. |