CORDET Framework - C2 Implementation
CrFwInStreamUserPar.h
Go to the documentation of this file.
1 
27 #ifndef CR_FW_INSTREAM_USERPAR_H_
28 #define CR_FW_INSTREAM_USERPAR_H_
29 
30 /* Include framework files */
31 #include "InStream/CrFwInStream.h"
32 #include "BaseCmp/CrFwResetProc.h"
33 /* Include test suite files */
34 #include "CrFwInStreamStub.h"
35 #include "CrFwInStreamSocket.h"
36 #include "CrFwClientSocket.h"
37 #include "CrFwServerSocket.h"
38 
47 #define CR_FW_NOF_INSTREAM 7
48 
63 #define CR_FW_INSTREAM_PQSIZE {3,3,3,3,5,6,7}
64 
72 #define CR_FW_INSTREAM_NOF_GROUPS 2
73 
82 #define CR_FW_INSTREAM_NOF_SRCS 8
83 
98 #define CR_FW_INSTREAM_SRC_PAIRS {{1,0},\
99  {2,1},\
100  {3,2},\
101  {4,3},\
102  {5,4},\
103  {6,0},\
104  {7,5},\
105  {10,6}}
106 
122 #define CR_FW_INSTREAM_PCKTCOLLECT {&CrFwInStreamStubPcktCollect, \
123  &CrFwInStreamStubPcktCollect, \
124  &CrFwInStreamStubPcktCollect, \
125  &CrFwInStreamStubPcktCollect, \
126  &CrFwInStreamSocketPcktCollect, \
127  &CrFwClientSocketPcktCollect, \
128  &CrFwServerSocketPcktCollect}
129 
148 #define CR_FW_INSTREAM_PCKTAVAILCHECK {&CrFwInStreamStubIsPcktAvail, \
149  &CrFwInStreamStubIsPcktAvail, \
150  &CrFwInStreamStubIsPcktAvail, \
151  &CrFwInStreamStubIsPcktAvail, \
152  &CrFwInStreamSocketIsPcktAvail, \
153  &CrFwClientSocketIsPcktAvail, \
154  &CrFwServerSocketIsPcktAvail}
155 
182 #define CR_FW_INSTREAM_INITCHECK {&CrFwBaseCmpDefInitCheck, \
183  &CrFwBaseCmpDefInitCheck, \
184  &CrFwBaseCmpDefInitCheck, \
185  &CrFwInStreamStubDummyCheck, \
186  &CrFwInStreamSocketInitCheck, \
187  &CrFwClientSocketInitCheck, \
188  &CrFwServerSocketInitCheck}
189 
219 #define CR_FW_INSTREAM_INITACTION {&CrFwInStreamDefInitAction, \
220  &CrFwInStreamDefInitAction, \
221  &CrFwInStreamDefInitAction, \
222  &CrFwInStreamStubInitAction, \
223  &CrFwInStreamSocketInitAction, \
224  &CrFwClientSocketInitAction, \
225  &CrFwServerSocketInitAction}
226 
249 #define CR_FW_INSTREAM_CONFIGCHECK {&CrFwBaseCmpDefConfigCheck, \
250  &CrFwBaseCmpDefConfigCheck, \
251  &CrFwBaseCmpDefConfigCheck, \
252  &CrFwInStreamStubDummyCheck, \
253  &CrFwBaseCmpDefConfigCheck, \
254  &CrFwBaseCmpDefConfigCheck, \
255  &CrFwServerSocketConfigCheck}
256 
286 #define CR_FW_INSTREAM_CONFIGACTION {&CrFwInStreamDefConfigAction, \
287  &CrFwInStreamDefConfigAction, \
288  &CrFwInStreamDefConfigAction, \
289  &CrFwInStreamStubConfigAction, \
290  &CrFwInStreamSocketConfigAction, \
291  &CrFwClientSocketConfigAction, \
292  &CrFwServerSocketConfigAction}
293 
321 #define CR_FW_INSTREAM_SHUTDOWNACTION {&CrFwInStreamDefShutdownAction, \
322  &CrFwInStreamStubShutdown, \
323  &CrFwInStreamDefShutdownAction, \
324  &CrFwInStreamDefShutdownAction, \
325  &CrFwInStreamSocketShutdownAction, \
326  &CrFwClientSocketShutdownAction, \
327  &CrFwServerSocketShutdownAction}
328 
329 #endif /* CR_FW_INSTREAM_USERPAR_H_ */
Interface for a client socket to be used by InStreams and OutStreams.
Definition of the InStream component.
Interface for the Socket-Based InStream.
Interface for the InStream stub.
Component Reset Procedure (CRP) for the Base Component.
Interface for a server socket to be used by InStreams and OutStreams.
P&P Software GmbH, Copyright 2012-2013, All Rights Reserved