C# Class PBCaGw.Handlers.CommandHandler

The command handler base class. To run an handler use the ExecuteRequestHandler or the ExecuteResponseHandler static functions.
Mostrar archivo Open project: ISISComputingGroup/EPICS-epicssharp

Public Methods

Method Description
DoRequest ( DataPacket packet, Workers chain, DataPacketDelegate sendData ) : void
DoResponse ( DataPacket packet, Workers chain, DataPacketDelegate sendData ) : void
ExecuteRequestHandler ( UInt16 command, DataPacket packet, PBCaGw chain, DataPacketDelegate send ) : void

Used to answer to a request

ExecuteResponseHandler ( UInt16 command, DataPacket packet, PBCaGw chain, DataPacketDelegate send ) : void

Used to answer to a response

Private Methods

Method Description
CommandHandler ( ) : System

Setup the handles in the array for quick access.

GetCommandName ( UInt16 commandId ) : string

Returns the command name given a command id.

IsAllowed ( UInt16 command ) : bool

Method Details

DoRequest() public abstract method

public abstract DoRequest ( DataPacket packet, Workers chain, DataPacketDelegate sendData ) : void
packet DataPacket
chain Workers
sendData DataPacketDelegate
return void

DoResponse() public abstract method

public abstract DoResponse ( DataPacket packet, Workers chain, DataPacketDelegate sendData ) : void
packet DataPacket
chain Workers
sendData DataPacketDelegate
return void

ExecuteRequestHandler() public static method

Used to answer to a request
public static ExecuteRequestHandler ( UInt16 command, DataPacket packet, PBCaGw chain, DataPacketDelegate send ) : void
command System.UInt16
packet DataPacket
chain PBCaGw
send DataPacketDelegate
return void

ExecuteResponseHandler() public static method

Used to answer to a response
public static ExecuteResponseHandler ( UInt16 command, DataPacket packet, PBCaGw chain, DataPacketDelegate send ) : void
command System.UInt16
packet DataPacket
chain PBCaGw
send DataPacketDelegate
return void