IS CNL

From LFS Manual
Revision as of 10:00, 10 February 2026 by Bokujishin (talk | contribs) (Created page with "== Introduction == The '''C'''on'''N'''ection '''L'''eave packet is sent by LFS when a player leaves the server. {| class="wikitable" |+ IS_CNL packet properties |- ! Type !...")
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to navigationJump to search

Introduction

The ConNection Leave packet is sent by LFS when a player leaves the server.

IS_CNL packet properties
Type Name Description
byte Size 8
byte Type ISP_CNL
byte ReqI 0
byte UCID unique id of the connection which left
byte Reason leave reason (LEAVR_x)
byte Total number of connections including host
byte Sp2
byte Sp3

Packet Details

Size

The size of the packet is always 8 bytes.

Type

The packet type from the ISP_ enumeration, always ISP_CNL.

ReqI

ReqI is always equal to zero.

UCID

The unique ID of the leaving connection.

Reason

The reason for leaving, a value from the LEAVR_ enumeration:

  • LEAVR_DISCO: No reason given (disconnected)
  • LEAVR_TIMEOUT: Timed out
  • LEAVR_LOSTCONN: Lost connection
  • LEAVR_KICKED: Kicked
  • LEAVR_BANNED: Banned
  • LEAVR_SECURITY: Security
  • LEAVR_CPW: Cheat protection wrong
  • LEAVR_OOS: Out of sync with host
  • LEAVR_JOOS: Join OOS (initial sync failed)
  • LEAVR_HACK: Invalid packet

Total

The total number of connections including the host.