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

VxWorks

开发平台:

C/C++

  1. /* NmPipe.h - Named pipe routines */
  2. /* Copyright 1984-1997 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. --------------------
  6. 01a,24oct97, pdn  written
  7. */
  8. #ifndef __INCNmPipeh
  9. #define __INCNmPipeh
  10. #ifdef __cplusplus
  11. extern "C" {
  12. #endif
  13. /* defines */
  14. #define DEF_PIPE_NAME "\\.\pipe\simnt" /* Default pipe name */
  15. #define OVERLAPPED_IO TRUE
  16. #define PIPE_BUF_SIZE 1048576 /* 1 MByte */
  17. /* function declarations */
  18. HANDLE pipeCreate (void);
  19. HANDLE pipeConnect (void);
  20. int pipeWrite (HANDLE hPipe, char *pBuf, int nByte, int nTimeOut);
  21. int pipeRead (HANDLE hPipe, char *pBuf, int nByte, int nTimeOut);
  22. BOOL pipeCheck (HANDLE hPipe);
  23. #ifdef __cplusplus
  24. }
  25. #endif
  26. #endif /* __INCNmPipeh */