NetworkSessionInfo

Lightweight read-only struct that carries session metadata — ID, name, and maximum connections — without any runtime state. Used to describe available sessions for listing and selection before joining.

Definition

Namespace: Paragon.Core.Network Assembly: Paragon.dll

public readonly struct NetworkSessionInfo

Remarks

NetworkSessionInfo is a pure data carrier used to represent session metadata separate from the live NetworkSession instance. Typical use cases include:

  • Session browser — listing available sessions returned by a matchmaking or lobby service

  • Session selection — passing session info to a join operation without needing a full NetworkSession reference

As a readonly struct, it is stack-allocated and immutable, making it efficient for collections and network responses.

Quick Lookup

Goal
How

Get session ID

info.Id

Get session name

info.Name

Get max connections

info.MaxConnections

Create from service data

new NetworkSessionInfo(id, name, maxConnections)

Properties

Id

The unique identifier for the session.

Name

The display name of the session.

MaxConnections

The maximum number of players allowed in the session.

Methods

Constructor

Parameter
Type
Description

id

string

Unique session identifier

name

string

Display name of the session

maxConnections

int

Maximum allowed players

Examples

Listing Available Sessions

Joining a Session by Info

See Also

Last updated