wvHostLibP.h
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:1k
源码类别:

VxWorks

开发平台:

C/C++

  1. /* wvHostLibP.h - host info library header */
  2. /* Copyright 1997 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. --------------------
  6. 01d,29aug97,cth  should have changed the initials on 01c
  7. 01c,21aug97,smb  added include of bootLib.h
  8. 01b,04mar94,smb  changed prototype for wvHostInfoInit (SPR #3089)
  9. 01a,10dec93,smb  written.
  10. */
  11. #ifndef __INCwvhostlibph
  12. #define __INCwvhostlibph
  13. /* include bootLib.h just for BOOT_ADDR_LEN */
  14. #include "bootLib.h"
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. #define DEFAULT_PORT 6164
  19. typedef struct hostInfo              /* maintains host and port information */
  20.     {
  21.     char    ipAddress [BOOT_ADDR_LEN];
  22.     ushort_t    port;
  23.     } HOSTINFO;
  24. extern HOSTINFO * pHostInfo;
  25. #if defined(__STDC__) || defined(__cplusplus)
  26. #else   /* __STDC__ */
  27. #endif  /* __STDC__ */
  28. #ifdef __cplusplus
  29. }
  30. #endif
  31. #endif /* __INCwvhostlibph*/