Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

90 lines
2.8 KiB

  1. /***************************************************************************
  2. *
  3. * File: wscb.h
  4. *
  5. * INTEL Corporation Proprietary Information
  6. * Copyright (c) 1996 Intel Corporation.
  7. *
  8. * This listing is supplied under the terms of a license agreement
  9. * with INTEL Corporation and may not be used, copied, nor disclosed
  10. * except in accordance with the terms of that agreement.
  11. *
  12. ***************************************************************************
  13. *
  14. * $Workfile: wscb.h $
  15. * $Revision: 1.2 $
  16. * $Modtime: 05 Apr 1996 12:00:00 $
  17. * $Log: S:/STURGEON/SRC/INCLUDE/VCS/wscb.h_v $
  18. *
  19. * Rev 1.2 05 Apr 1996 15:20:20 WYANG
  20. *
  21. * added WSCB_E_MPOOLUSEDUP
  22. *
  23. * Rev 1.1 09 Mar 1996 14:47:30 EHOWARDX
  24. *
  25. * Added extern "C" to function prototypes.
  26. *
  27. *****************************************************************************/
  28. // this file defines the export functions for
  29. // WSCB.DLL, and import functions for users of WSCB.DLL module.
  30. #ifndef WSCB_H
  31. #define WSCB_H
  32. #include "winsock2.h"
  33. #if defined(__cplusplus)
  34. extern "C"
  35. {
  36. #endif // (__cplusplus)
  37. // declare exported functions
  38. #if defined(WSCB_MYLIB)
  39. #define WSCB_MYLIBAPI __declspec(dllexport)
  40. #else
  41. #define WSCB_MYLIBAPI __declspec(dllimport)
  42. #endif
  43. // error code
  44. #define WSCB_E_MPOOLUSEDUP (WSABASEERR+200)
  45. // This function wraps the Winsock2 WSARecvFrom function call, and it is
  46. // responsible to make callback to the caller of this function once the
  47. // Winsock receive operation is signaled by the Winsock network layer.
  48. // The return result is Winsock errors (please see Winsocket 2 API).
  49. WSCB_MYLIBAPI int WSCB_WSARecvFrom(
  50. SOCKET s,
  51. LPWSABUF lpBuffers,
  52. DWORD dwBufferCount,
  53. LPDWORD lpNumberOfBytesRecvd,
  54. LPDWORD lpFlags,
  55. struct sockaddr FAR * lpFrom,
  56. LPINT lpFromlen,
  57. LPWSAOVERLAPPED lpOverlapped,
  58. LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine);
  59. // This functions wraps the Winsock2 WSASendTo function call, and it is
  60. // responsible to make callback to the caller of this function once the
  61. // Winsock send operation is signaled by the Winsock network layer.
  62. // The return result is Winsock errors (please see Winsocket 2 APi).
  63. WSCB_MYLIBAPI int WSCB_WSASendTo(
  64. SOCKET s,
  65. LPWSABUF lpBuffers,
  66. DWORD dwBufferCount,
  67. LPDWORD lpNumberOfBytesSent,
  68. DWORD dwFlags,
  69. const struct sockaddr FAR * lpTo,
  70. int iToLen,
  71. LPWSAOVERLAPPED lpOverlapped,
  72. LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine);
  73. #if defined(__cplusplus)
  74. }
  75. #endif // (__cplusplus)
  76. #endif // WSCB_H