poll.h 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /****************************************************************************
  2. ******* *******
  3. ******* P O L L
  4. ******* *******
  5. ****************************************************************************
  6. Author : Ian Nandhra / Jeremy Rolls
  7. Date :
  8. *
  9. * (C) 1990 - 2000 Specialix International Ltd., Byfleet, Surrey, UK.
  10. *
  11. * This program is free software; you can redistribute it and/or modify
  12. * it under the terms of the GNU General Public License as published by
  13. * the Free Software Foundation; either version 2 of the License, or
  14. * (at your option) any later version.
  15. *
  16. * This program is distributed in the hope that it will be useful,
  17. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. * GNU General Public License for more details.
  20. *
  21. * You should have received a copy of the GNU General Public License
  22. * along with this program; if not, write to the Free Software
  23. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  24. Version : 0.01
  25. Mods
  26. ----------------------------------------------------------------------------
  27. Date By Description
  28. ----------------------------------------------------------------------------
  29. ***************************************************************************/
  30. #ifndef _poll_h
  31. #define _poll_h
  32. #ifndef lint
  33. #ifdef SCCS_LABELS
  34. static char *_rio_poll_h_sccs = "@(#)poll.h 1.2" ;
  35. #endif
  36. #endif
  37. #ifdef HOST
  38. #define POLL_STACK 100
  39. #endif
  40. #ifdef RTA
  41. #define POLL_STACK 200
  42. #endif
  43. #define POLL_PERIOD (int) SECOND
  44. /* The various poll commands */
  45. #define POLL_POLL 0 /* We are connected and happy.. */
  46. #define POLL_INTRO 1 /* Introduction packet */
  47. #define POLL_TOPOLOGY 2 /* Topology update */
  48. #define POLL_ASSIGN 3 /* ID assign */
  49. #define POLL_FOAD 4 /* F*** Off And Die */
  50. #define POLL_LMD 5 /* Let Me Die */
  51. #define POLL_DYB 6 /* Die You Ba***** */
  52. /* The way data fields are split up for POLL packets */
  53. #define POLL_HOST_SERIAL 2 /* Host who booted me */
  54. #define POLL_MY_SERIAL 6 /* My serial number */
  55. #define POLL_YOUR_ID 1 /* Your ID number */
  56. #define POLL_TOPOLOGY_FIELDS 2 /* Topology maps */
  57. #endif
  58. /*********** end of file ***********/