Click or drag to resize

LiteConnectionRequestReject(Byte, Int32, Int32, Boolean) Method

Rejects the connection request.

Namespace: LiteNetLib
Assembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.2.1.0 (2026.2.1.0)
Syntax
C#
public void Reject(
	byte[] rejectData,
	int start,
	int length,
	bool force
)

Parameters

rejectData  Byte
Optional user data to send along with the rejection packet.
start  Int32
Offset in the rejectData array.
length  Int32
Length of the data to be sent from the rejectData array.
force  Boolean
If , immediately removes the request, if rejectData is not a reject packet is also sent.
If , creates a temporary peer that sends rejection packets and lingers in memory until a timeout occurs to handle late-arriving packets.
See Also