Namespace SteamNetworkLib.Models
Classes
- DataSyncMessage
Represents a data synchronization message for sharing key-value data between players. Used for synchronizing game state, configuration data, or any structured information across the lobby.
- EventMessage
Represents an event message for broadcasting system events, game events, and notifications between players. Supports advanced features like priority levels, targeting, acknowledgments, and expiration.
- FileTransferMessage
Represents a file transfer message for sharing files between players in chunks. Supports chunked file transfer to handle large files that exceed network packet size limits.
- HeartbeatMessage
Represents a heartbeat message for connection monitoring, latency measurement, and keepalive functionality. Used to monitor P2P network performance.
- LobbyInfo
Represents information about a Steam lobby including its metadata and current state. Contains all essential details needed to identify and manage a lobby session.
- MemberInfo
Represents information about a lobby member including their identity and status. Contains all essential details needed to identify and manage a player in a lobby.
- P2PMessage
Base class for all P2P messages in SteamNetworkLib. Provides common functionality for serialization, deserialization, and message metadata.
- P2PRequestMessage<TPayload>
Base class for typed P2P request messages with a correlation ID.
- P2PRequestPayload<TPayload>
Serializable request envelope used by P2PRequestMessage<TPayload>.
- P2PResponseMessage<TPayload>
Base class for typed P2P response messages with a correlation ID.
- P2PResponsePayload<TPayload>
Serializable response envelope used by P2PResponseMessage<TPayload>.
- StreamMessage
Represents a universal real-time streaming message for audio, video, or continuous data streams. Supports compression, quality settings, and proper sequencing for low-latency communication. Optimized for streaming applications that require minimal delay and high throughput.
- TextMessage
Represents a simple text message for P2P communication between players. This is the most basic message type for sending plain text content.
- TypedP2PMessage<TPayload>
Represents a custom P2P message that carries a strongly typed JSON payload.
Interfaces
- IP2PCorrelatedMessage
Identifies a P2P message that belongs to a request/response exchange.
- IP2PResponseMessage
Identifies a correlated P2P response message that can report responder failures.