Class to receive an process a block coming from a Device. More...
Public Member Functions | |
byte [] | GetValue (DeviceToHostTag T) |
Retrieve a V given its T. More... | |
Public Member Functions inherited from SpringCard.SmartReader.Mk2Link.Mk2Protocol.ProtocolBlock | |
byte [] | GetValue (ushort T) |
Retrieve a V given its T. More... | |
Static Public Member Functions | |
static DeviceToHostBlock | Deserialize (EChannel Channel, IPEndPoint From, byte[] Buffer, out byte[] Remaining) |
Process an ingoing block as a DeviceToHostBlock object. Return null if deserialization fails. (internal function) More... | |
Properties | |
EChannel | Channel [get] |
Where does the block come from? More... | |
IPEndPoint | From [get] |
If the block arrives from the network (Channel = EChannel.NetworkTcp or EChannel.NetworkUdp), the Device's address and port. More... | |
bool | HasChecksum [get] |
Whether the block includes a checksum. More... | |
bool | HasSequence [get] |
Whether the block includes a sequence number (see Sequence) More... | |
bool | HasMacAddress [get] |
Whether the block includes a MAC address (see MacAddress) More... | |
bool | IsEmpty [get] |
Whether the block has some data, or is empty (keep-alive) More... | |
bool | IsDuplicate [get] |
Whether the block is a duplicate of a previous block (same MAC address, same sequence number) More... | |
ushort | FirstTag [get] |
First Tag found in the block. More... | |
UInt64 | MacAddress [get] |
MAC address provided by the Device. More... | |
UInt64 | Sequence [get] |
Sequence number provided by the Device. More... | |
DateTime | When [get] |
Timestamp of the block. More... | |
Properties inherited from SpringCard.SmartReader.Mk2Link.Mk2Protocol.ProtocolBlock | |
byte | Type [get, protected set] |
The type of the block (either a HostToDeviceTag or a DeviceToHostTag) More... | |
byte [] | Payload [get, protected set] |
The payload of the block. More... | |
Dictionary< ushort, byte[]> | DataPieces [get, protected set] |
The payload explosed as a list of T,L,V. More... | |
Class to receive an process a block coming from a Device.
|
static |
Process an ingoing block as a DeviceToHostBlock object. Return null if deserialization fails. (internal function)
byte [] SpringCard.SmartReader.Mk2Link.Mk2Protocol.DeviceToHostBlock.GetValue | ( | DeviceToHostTag | T | ) |
Retrieve a V given its T.
|
get |
Where does the block come from?
|
get |
First Tag found in the block.
|
get |
If the block arrives from the network (Channel = EChannel.NetworkTcp or EChannel.NetworkUdp), the Device's address and port.
|
get |
Whether the block includes a checksum.
|
get |
Whether the block includes a MAC address (see MacAddress)
|
get |
Whether the block includes a sequence number (see Sequence)
|
get |
Whether the block is a duplicate of a previous block (same MAC address, same sequence number)
|
get |
Whether the block has some data, or is empty (keep-alive)
|
get |
MAC address provided by the Device.
|
get |
Sequence number provided by the Device.
|
get |
Timestamp of the block.