Skip to content

Server-switching Packet #28

@anhcraft

Description

@anhcraft

A type of client-bound packet that allows a server to request a server switch.

Workflow

  • Server A sends a request to client P for a switch to server B
server_B_ip:server_B_port
metadata
  • Client P tries to connect to server B
  • If failed (due to any error), an error is sent back to server A
error_msg
  • If success, no response will be sent to server A
  • Client P will try to send metadata to server B
metadata
  • If Tensai is installed in server B, the metadata will be read

Metadata

  • The metadata is a convenient way to exchange client data between server A and server B
  • It can contain a reference to point out the previous server

Draft packets

  • Server-switch Request Packet: send from server A to client
  • Server-switch Exception Packet: send from client to server A
  • Server-switch Exchange Packet: send from client to server B, when play networking channel is ready

Detection

  • Whether a request is failed: using Server-switch Exception Packet
  • Whether a request is success: impossible (since the connection to server A is closed once switching to server B)
  • Whether the player switched from another server: using Server-switch Exchange Packet

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions