IS NCN

From LFS Manual
Jump to navigationJump to search

Introduction

The New ConNection packet is sent by LFS when a player joins the server, or as a reply to a TINY_NCN packet.

IS_NCN packet properties
Type Name Description
byte Size 56
byte Type ISP_NCN
byte ReqI 0 unless this is a reply to a TINY_NCN request
byte UCID new connection's unique id (0 = host)
char UName[24] username
char PName[24] nickname
byte Admin 1 if admin
byte Total number of connections including host
byte Flags bit 2: remote
byte Sp3

Packet Details

Size

The size of the packet is always 56 bytes.

Type

The packet type from the ISP_ enumeration, always ISP_NCN.

ReqI

ReqI is equal to zero, unless the packet is a reply to a TINY_NCN request.

UCID

The new connection's unique ID (0 is the host).

UName

The username of the player (LFS licence name).

PName

The nickname of the player (in-game name).

Admin

Whether the player is a server admin (1) or not (0).

Total

The total number of connections including the host.

Flags

Connection flags:

  • Bit 2: remote