libclientrecv.h 5.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /*****************************************************************************/
  2. /******************* Siemens Medizinische Technik Erlangen *******************/
  3. /*****************************************************************************/
  4. /* */
  5. /* File name: libclientrecv.h Version: 1.0 */
  6. /* */
  7. /*****************************************************************************/
  8. /* */
  9. /* Type: example headerfile Programming language: C++ */
  10. /* */
  11. /*****************************************************************************/
  12. /* */
  13. /* Author: Reiner Stark Date: 04.11.97 */
  14. /* */
  15. /* Changes: */
  16. /* */
  17. /* Date | Name | Method | CC-Gen */
  18. /* ---------+---------------------+------------------------------+---------- */
  19. /* 02.12.98 | Koestner | Type of pcObject from | */
  20. /* | | axn_char* to ACS_BYTE* | */
  21. /* | | changed | */
  22. /* 08.02.06 | Fischer | removed | */
  23. /* | | SendObjToServerWithAck() | */
  24. /* | | | */
  25. /* | | | */
  26. /* */
  27. /*****************************************************************************/
  28. /* */
  29. /* Description: */
  30. /* ============ */
  31. /* */
  32. /* This client is a common example how the class CAxnClientRecv is used. */
  33. /* First it creates an instance of the class. Then it creates the own */
  34. /* mailbox for receiving objects and the own aliveflag and connects to the */
  35. /* server mailbox. This is done in ConnectToServer. */
  36. /* If this is successfull, the client waits for objects. */
  37. /* Even if there come no real objects it receives dummy objects to check */
  38. /* if the connection between the server and this client is alive. The time */
  39. /* between two dummy objects is equal to */
  40. /* (DummyTimeCounter * AXN_DUMMYTIME_BASE_RATE_IN_MS ) */
  41. /* If there are problems receiving an object, and this lasts longer than */
  42. /* this time, the receive-call returns with an error and the client is */
  43. /* forced to react. Usually the server also recognizes the problem and */
  44. /* the client does no longer exist for the server. This means the client */
  45. /* should delete the instance of CAxnClientRecv ( with its resources ) and */
  46. /* try to reconnect to the server. */
  47. /* */
  48. /*****************************************************************************/
  49. /* */
  50. /* Copyright (c) Siemens AG 1997. All rights reserved */
  51. /* */
  52. /*****************************************************************************/
  53. /* */
  54. /* */
  55. /* */
  56. #ifndef LIBCLIENTRECV_H
  57. #define LIBCLIENTRECV_H
  58. /****************************************************************************
  59. declaration for CAxnClientRecv
  60. ****************************************************************************/
  61. //#include "..\\gbl\axnportab.h"
  62. #include "..\\gbl\axnglobaldefines.h"
  63. //#include "axnglobalflag.h"
  64. //#include "axnmbx.h"
  65. #include "..\\gbl\axnclientrecv.h"
  66. /****************************************************************************
  67. declaration of SendObjToServer ()
  68. ****************************************************************************/
  69. axn_status SendObjToServer( ACS_BYTE* pcObject );
  70. typedef struct inlist_enh_t_tag
  71. {
  72. inlist_enh_t1 inlist_head;
  73. inlist_enh_t2 inlist_obj[NO_OBJECTS_MAX];
  74. } inlist_enh_type;
  75. #endif