Host-side class to receive the blocks coming from remote Devices. More...
Public Member Functions | |
delegate bool | FrameReceivedCallback (byte[] Frame) |
Definition of the OnFrameReceived callback. More... | |
delegate void | BlockReceivedCallback (Mk2Protocol.DeviceToHostBlock Block) |
Definition of the OnBlockReceived callback. More... | |
Listener (ushort LocalUdpPort=DefaultHostPort) | |
Create the server. More... | |
bool | Start () |
Start the server. More... | |
void | Stop () |
Stop the server. More... | |
UInt64 [] | GetInactiveMacAddresses (int GracePeriodSec=30) |
Get a list of devices that have emitted a block but don't talk anymore. More... | |
Public Attributes | |
FrameReceivedCallback | OnFrameReceived |
Callback to be called when a raw frame has been received. Return false to prevent further processing. More... | |
BlockReceivedCallback | OnBlockReceived |
Callback to be called when a valid block has been received. More... | |
bool | ShowDuplicates = false |
Shall we discard duplicated block? More... | |
Protected Member Functions | |
void | HandleIncomingFrame (IPEndPoint Endpoint, byte[] Frame) |
Host-side class to receive the blocks coming from remote Devices.
SpringCard.SmartReader.Mk2Link.Mk2NetworkUdp.Listener.Listener | ( | ushort | LocalUdpPort = DefaultHostPort | ) |
Create the server.
delegate void SpringCard.SmartReader.Mk2Link.Mk2NetworkUdp.Listener.BlockReceivedCallback | ( | Mk2Protocol.DeviceToHostBlock | Block | ) |
Definition of the OnBlockReceived callback.
delegate bool SpringCard.SmartReader.Mk2Link.Mk2NetworkUdp.Listener.FrameReceivedCallback | ( | byte [] | Frame | ) |
Definition of the OnFrameReceived callback.
UInt64 [] SpringCard.SmartReader.Mk2Link.Mk2NetworkUdp.Listener.GetInactiveMacAddresses | ( | int | GracePeriodSec = 30 | ) |
Get a list of devices that have emitted a block but don't talk anymore.
bool SpringCard.SmartReader.Mk2Link.Mk2NetworkUdp.Listener.Start | ( | ) |
Start the server.
void SpringCard.SmartReader.Mk2Link.Mk2NetworkUdp.Listener.Stop | ( | ) |
Stop the server.
BlockReceivedCallback SpringCard.SmartReader.Mk2Link.Mk2NetworkUdp.Listener.OnBlockReceived |
Callback to be called when a valid block has been received.
FrameReceivedCallback SpringCard.SmartReader.Mk2Link.Mk2NetworkUdp.Listener.OnFrameReceived |
Callback to be called when a raw frame has been received. Return false to prevent further processing.
bool SpringCard.SmartReader.Mk2Link.Mk2NetworkUdp.Listener.ShowDuplicates = false |
Shall we discard duplicated block?