SpringCard Smart Readers library for .NET  19.9.20
Communicate and manage SpringCard Smart Reader devices
SpringCard.SmartReader.Mk2Link.Mk2Protocol.DeviceToHostBlock Class Reference

Class to receive an process a block coming from a Device. More...

Inheritance diagram for SpringCard.SmartReader.Mk2Link.Mk2Protocol.DeviceToHostBlock:
SpringCard.SmartReader.Mk2Link.Mk2Protocol.ProtocolBlock

Public Member Functions

byte [] GetValue (DeviceToHostTag 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...
 

Detailed Description

Class to receive an process a block coming from a Device.

Member Function Documentation

◆ Deserialize()

static DeviceToHostBlock SpringCard.SmartReader.Mk2Link.Mk2Protocol.DeviceToHostBlock.Deserialize ( EChannel  Channel,
IPEndPoint  From,
byte []  Buffer,
out byte []  Remaining 
)
static

Process an ingoing block as a DeviceToHostBlock object. Return null if deserialization fails. (internal function)

◆ GetValue()

byte [] SpringCard.SmartReader.Mk2Link.Mk2Protocol.DeviceToHostBlock.GetValue ( DeviceToHostTag  T)

Retrieve a V given its T.

Property Documentation

◆ Channel

EChannel SpringCard.SmartReader.Mk2Link.Mk2Protocol.DeviceToHostBlock.Channel
get

Where does the block come from?

◆ FirstTag

ushort SpringCard.SmartReader.Mk2Link.Mk2Protocol.DeviceToHostBlock.FirstTag
get

First Tag found in the block.

◆ From

IPEndPoint SpringCard.SmartReader.Mk2Link.Mk2Protocol.DeviceToHostBlock.From
get

If the block arrives from the network (Channel = EChannel.NetworkTcp or EChannel.NetworkUdp), the Device's address and port.

◆ HasChecksum

bool SpringCard.SmartReader.Mk2Link.Mk2Protocol.DeviceToHostBlock.HasChecksum
get

Whether the block includes a checksum.

◆ HasMacAddress

bool SpringCard.SmartReader.Mk2Link.Mk2Protocol.DeviceToHostBlock.HasMacAddress
get

Whether the block includes a MAC address (see MacAddress)

◆ HasSequence

bool SpringCard.SmartReader.Mk2Link.Mk2Protocol.DeviceToHostBlock.HasSequence
get

Whether the block includes a sequence number (see Sequence)

◆ IsDuplicate

bool SpringCard.SmartReader.Mk2Link.Mk2Protocol.DeviceToHostBlock.IsDuplicate
get

Whether the block is a duplicate of a previous block (same MAC address, same sequence number)

◆ IsEmpty

bool SpringCard.SmartReader.Mk2Link.Mk2Protocol.DeviceToHostBlock.IsEmpty
get

Whether the block has some data, or is empty (keep-alive)

◆ MacAddress

UInt64 SpringCard.SmartReader.Mk2Link.Mk2Protocol.DeviceToHostBlock.MacAddress
get

MAC address provided by the Device.

◆ Sequence

UInt64 SpringCard.SmartReader.Mk2Link.Mk2Protocol.DeviceToHostBlock.Sequence
get

Sequence number provided by the Device.

◆ When

DateTime SpringCard.SmartReader.Mk2Link.Mk2Protocol.DeviceToHostBlock.When
get

Timestamp of the block.


The documentation for this class was generated from the following file: