Leaked source code of windows server 2003
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.

59 lines
1.3 KiB

  1. /*
  2. * wsclus.h
  3. *
  4. * Microsoft Windows
  5. * Copyright (c) Microsoft Corporation. All rights reserved.
  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. * This is the structure of the SOCKADDR structure for the Microsoft
  21. * Cluster Network Protocol.
  22. */
  23. typedef struct sockaddr_cluster {
  24. u_short sac_family;
  25. u_short sac_port;
  26. u_long sac_node;
  27. u_long sac_zero;
  28. } SOCKADDR_CLUSTER, *PSOCKADDR_CLUSTER, FAR *LPSOCKADDR_CLUSTER;
  29. /*
  30. * Node address constants
  31. */
  32. #define CLUSADDR_ANY 0
  33. /*
  34. * Protocol families used in the "protocol" parameter of the socket() API.
  35. */
  36. #define CLUSPROTO_CDP 2
  37. /*
  38. * Protocol-specific IOCTLs
  39. *
  40. */
  41. #define WSVENDOR_MSFT 0x00010000
  42. #define WSCLUS_IOCTL(_code) (_WSAIO(IOC_VENDOR, (_code)) | WSVENDOR_MSFT)
  43. #define SIO_CLUS_IGNORE_NODE_STATE WSCLUS_IOCTL(1)
  44. #endif // ifndef _WSCLUS_INCLUDED