C# Class CaSharpServer.CAServerFilter

Message filter which decodes requests as well as create some pre-formated answers.
Show file Open project: ISISComputingGroup/EPICS-epicssharp Class Usage Examples

Private Properties

Property Type Description
CAServerFilter System
ChannelFoundMessage byte[]
ChannelWroteMessage byte[]
MonitorChangeMessage byte[]
MonitorCloseMessage byte[]
channelDisconnectionMessage byte[]

Public Methods

Method Description
ChannelCreatedMessage ( int clientId, int serverId, EpicsType dataType, int dataCount, AccessRights access ) : byte[]
ChannelReadMessage ( int clientId, int ioId, EpicsType dataType, int dataCount, byte data ) : byte[]

ErrorMessage ( int clientId, EpicsTransitionStatus status, string errorMessage, byte header ) : byte[]
HandleMessage ( ushort CommandId, ushort DataType, uint &PayloadSize, uint &DataCount, uint &Parameter1, uint &Parameter2, byte &header, byte &payload, System &iep ) : void
ProcessReceivedData ( Pipe dataPipe, EndPoint remoteEndPoint, int maxPacketSize, bool wait = true ) : void

Private Methods

Method Description
CAServerFilter ( CAServer server ) : System
ChannelFoundMessage ( uint clientId ) : byte[]
ChannelWroteMessage ( int clientId, int ioId, EpicsType dataType, int dataCount, EpicsTransitionStatus status ) : byte[]
MonitorChangeMessage ( int subscriptionId, int clientId, EpicsType dataType, int dataCount, byte data ) : byte[]
MonitorCloseMessage ( EpicsType dataType, int serverId, int subscriptionId ) : byte[]
channelDisconnectionMessage ( int clientId ) : byte[]

Method Details

ChannelCreatedMessage() public method

public ChannelCreatedMessage ( int clientId, int serverId, EpicsType dataType, int dataCount, AccessRights access ) : byte[]
clientId int
serverId int
dataType EpicsType
dataCount int
access AccessRights
return byte[]

ChannelReadMessage() public method

public ChannelReadMessage ( int clientId, int ioId, EpicsType dataType, int dataCount, byte data ) : byte[]
clientId int IMPORTANT IT's not sure yet that this has to be the cliendId could also be the ioId
ioId int
dataType EpicsType
dataCount int
data byte
return byte[]

ErrorMessage() public method

public ErrorMessage ( int clientId, EpicsTransitionStatus status, string errorMessage, byte header ) : byte[]
clientId int
status EpicsTransitionStatus
errorMessage string
header byte
return byte[]

HandleMessage() public method

public HandleMessage ( ushort CommandId, ushort DataType, uint &PayloadSize, uint &DataCount, uint &Parameter1, uint &Parameter2, byte &header, byte &payload, System &iep ) : void
CommandId ushort
DataType ushort
PayloadSize uint
DataCount uint
Parameter1 uint
Parameter2 uint
header byte
payload byte
iep System
return void

ProcessReceivedData() public method

public ProcessReceivedData ( Pipe dataPipe, EndPoint remoteEndPoint, int maxPacketSize, bool wait = true ) : void
dataPipe Pipe
remoteEndPoint System.Net.EndPoint
maxPacketSize int
wait bool
return void