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.

73 lines
1.5 KiB

  1. /*
  2. * wsclus.h
  3. *
  4. * Microsoft Windows
  5. * Copyright (C) Microsoft Corporation, 1992-1997.
  6. *
  7. * Windows Sockets include file for the Microsoft Cluster Network
  8. * Protocol suite. Include this header file after winsock.h.
  9. *
  10. * To open a Cluster Datagram Protocol socket, call socket() with an
  11. * address family of AF_CLUSTER, a socket type of SOCK_DGRAM, and
  12. * protocol CLUSPROTO_CDP.
  13. *
  14. * The Cluster Network Protocol suite uses little endian byte
  15. * ordering in its address components.
  16. */
  17. #ifndef _WSCLUS_INCLUDED
  18. #define _WSCLUS_INCLUDED
  19. /*
  20. * Define the Cluster address family identifier.
  21. */
  22. #define AF_CLUSTER 24
  23. /*
  24. * This is the structure of the SOCKADDR structure for the Microsoft
  25. * Cluster Network Protocol.
  26. */
  27. typedef struct sockaddr_cluster {
  28. u_short sac_family;
  29. u_short sac_port;
  30. u_long sac_node;
  31. u_long sac_zero;
  32. } SOCKADDR_CLUSTER, *PSOCKADDR_CLUSTER, FAR *LPSOCKADDR_CLUSTER;
  33. /*
  34. * Node address constants
  35. */
  36. #define CLUSADDR_ANY 0
  37. /*
  38. * Protocol families used in the "protocol" parameter of the socket() API.
  39. */
  40. #define CLUSPROTO_CDP 2
  41. /*
  42. * Protocol-specific IOCTLs
  43. *
  44. */
  45. //
  46. // Removed comment to make this value official. This file
  47. // does not appear to be being used. It is only
  48. // left here to avoid unexpected breaking issues.
  49. // EBK - 5/8/2000 Whistler bug # 83164
  50. #define WSVENDOR_MSFT 0x00010000
  51. #define WSCLUS_IOCTL(_code) (_WSAIO(IOC_VENDOR, (_code)) | WSVENDOR_MSFT)
  52. #define SIO_CLUS_IGNORE_NODE_STATE WSCLUS_IOCTL(1)
  53. #endif // ifndef _WSCLUS_INCLUDED
  54.