/*****************************************************************************/ /******************* Siemens Medizinische Technik Erlangen *******************/ /*****************************************************************************/ /* */ /* File name: libclientrecv.h Version: 1.0 */ /* */ /*****************************************************************************/ /* */ /* Type: example headerfile Programming language: C++ */ /* */ /*****************************************************************************/ /* */ /* Author: Reiner Stark Date: 04.11.97 */ /* */ /* Changes: */ /* */ /* Date | Name | Method | CC-Gen */ /* ---------+---------------------+------------------------------+---------- */ /* 02.12.98 | Koestner | Type of pcObject from | */ /* | | axn_char* to ACS_BYTE* | */ /* | | changed | */ /* 08.02.06 | Fischer | removed | */ /* | | SendObjToServerWithAck() | */ /* | | | */ /* | | | */ /* */ /*****************************************************************************/ /* */ /* Description: */ /* ============ */ /* */ /* This client is a common example how the class CAxnClientRecv is used. */ /* First it creates an instance of the class. Then it creates the own */ /* mailbox for receiving objects and the own aliveflag and connects to the */ /* server mailbox. This is done in ConnectToServer. */ /* If this is successfull, the client waits for objects. */ /* Even if there come no real objects it receives dummy objects to check */ /* if the connection between the server and this client is alive. The time */ /* between two dummy objects is equal to */ /* (DummyTimeCounter * AXN_DUMMYTIME_BASE_RATE_IN_MS ) */ /* If there are problems receiving an object, and this lasts longer than */ /* this time, the receive-call returns with an error and the client is */ /* forced to react. Usually the server also recognizes the problem and */ /* the client does no longer exist for the server. This means the client */ /* should delete the instance of CAxnClientRecv ( with its resources ) and */ /* try to reconnect to the server. */ /* */ /*****************************************************************************/ /* */ /* Copyright (c) Siemens AG 1997. All rights reserved */ /* */ /*****************************************************************************/ /* */ /* */ /* */ #ifndef LIBCLIENTRECV_H #define LIBCLIENTRECV_H /**************************************************************************** declaration for CAxnClientRecv ****************************************************************************/ //#include "..\\gbl\axnportab.h" #include "..\\gbl\axnglobaldefines.h" //#include "axnglobalflag.h" //#include "axnmbx.h" #include "..\\gbl\axnclientrecv.h" /**************************************************************************** declaration of SendObjToServer () ****************************************************************************/ axn_status SendObjToServer( ACS_BYTE* pcObject ); typedef struct inlist_enh_t_tag { inlist_enh_t1 inlist_head; inlist_enh_t2 inlist_obj[NO_OBJECTS_MAX]; } inlist_enh_type; #endif