123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- /*****************************************************************************/
- /******************* Siemens Medizinische Technik Erlangen *******************/
- /*****************************************************************************/
- /* */
- /* File name: axnclientrecv.h Version: 1.0 */
- /* */
- /*****************************************************************************/
- /* */
- /* Type: class declaration Programming language: C++ */
- /* */
- /*****************************************************************************/
- /* */
- /* Author: Reiner Stark Date: 04.11.97 */
- /* */
- /* Changes: */
- /* */
- /* Date | Name | Method | CC-Gen */
- /* ---------+---------------------+------------------------------+---------- */
- /* 15.09.03 | Hoffmann | new var. pSleepObj under CE. | */
- /* | | reason: changing the Sleep | */
- /* | | call to WaitForSingleObject | */
- /* | | with timeout. | */
- /* 13.06.08 | Koestner | global definitions moved | */
- /* | | to globaldefines.h | */
- /* | | | */
- /* */
- /*****************************************************************************/
- /* */
- /* Description: */
- /* ============ */
- /* */
- /* */
- /*****************************************************************************/
- /* */
- /* Copyright (c) Siemens AG 1997. All rights reserved */
- /* */
- /*****************************************************************************/
- /* */
- /* */
- /* */
- #ifndef AXNCLIENTRECV_H
- #define AXNCLIENTRECV_H
- #include "..//gbl/axnportab.h" //detleted 20120904
- #include "..//gbl/axnglobaldefines.h"
- class CAxnMbx ;
- class CAxnGlobalFlag ;
- ///////////////////////
- #ifdef AXN_WINCE
- class CAxnGlobal;
- #endif
- //////////////////////
- /****************************************************************************
- declaration of CAxnClientRecv
- ****************************************************************************/
- class CAxnClientRecv
- {
- private:
- #ifdef AXN_WINCE
- CAxnGlobal* pSleepObj;
- #endif
- CAxnMbx* pRecvMbx;
- CAxnGlobalFlag* pAliveFlag;
- axn_word wAliveCheckIntervall;
- axn_long lRecvTimeout;
- axn_char szRecvMbxName[ MAX_RESOURCE_NAME_LENGTH ];
- axn_char szAliveFlagName[ MAX_RESOURCE_NAME_LENGTH ];
- axn_byte bFlagRecvState;
- public:
- axn_byte bClientAPId;
- CAxnClientRecv();
- ~CAxnClientRecv();
- axn_status connectToServer( axn_byte bClientId,
- axn_word wDummyTimeCounter );
- axn_status recvObject( ACS_BYTE *pcObj );
- axn_status recvObject( axn_long l_lRecvTimeout, ACS_BYTE *pcObj );
- private:
- turn_off_type tTurn_off_type;
- axn_status createResources( axn_void );
- axn_void deleteResources( axn_void );
- };
- #endif
|