_wsadata.h 810 B

1234567891011121314151617181920212223242526272829303132
  1. /**
  2. * This file has no copyright assigned and is placed in the Public Domain.
  3. * This file is part of the mingw-w64 runtime package.
  4. * No warranty is given; refer to the file DISCLAIMER.PD within this package.
  5. */
  6. #ifndef __MINGW_WSADATA_H
  7. #define __MINGW_WSADATA_H
  8. #define WSADESCRIPTION_LEN 256
  9. #define WSASYS_STATUS_LEN 128
  10. typedef struct WSAData {
  11. WORD wVersion;
  12. WORD wHighVersion;
  13. #ifdef _WIN64
  14. unsigned short iMaxSockets;
  15. unsigned short iMaxUdpDg;
  16. char *lpVendorInfo;
  17. char szDescription[WSADESCRIPTION_LEN+1];
  18. char szSystemStatus[WSASYS_STATUS_LEN+1];
  19. #else
  20. char szDescription[WSADESCRIPTION_LEN+1];
  21. char szSystemStatus[WSASYS_STATUS_LEN+1];
  22. unsigned short iMaxSockets;
  23. unsigned short iMaxUdpDg;
  24. char *lpVendorInfo;
  25. #endif
  26. } WSADATA, *LPWSADATA;
  27. #endif /* __MINGW_WSADATA_H */