Skip to content

41911a8b edd6 9cfa 7fc4 4d06b665f5f0

Arthur Frederico Neves edited this page Jul 19, 2016 · 3 revisions

BasePack.ID Property

Used by IOPackHandler(TPack) to classify and redirect incoming packs to the proper handle function. Refers to the first byte of the buffer.

Namespace: NETLIB
Assembly: NETLIB (in NETLIB.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#

public virtual byte ID { get; set; }

VB

Public Overridable Property ID As Byte
	Get
	Set

C++

public:
virtual property unsigned char ID {
	unsigned char get ();
	void set (unsigned char value);
}

F#

abstract ID : byte with get, set
override ID : byte with get, set

Property Value

Type: Byte

Remarks

As with any application protocol it is required something to identify the kind of the package, thus, I set that the first byte in the buffer will be used for that purpose.

See Also

Reference

BasePack Class
NETLIB Namespace
IOPackHandler(TPack).OnReceivedPackCall(TPack)
NETLIB.Protocol(TPack)
Protocol.triggers

Clone this wiki locally