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.

45 lines
1.3 KiB

  1. /*******************************************************************************
  2. *
  3. * wsvns.h
  4. *
  5. * Copyright (C) Microsoft Corporation, 1992-1999.
  6. *
  7. * Windows Sockets include file for VINES IP. This file contains all
  8. * standardized VINES IP information. Include this header file after
  9. * winsock.h.
  10. *
  11. * To open an VINES IP socket, call socket() with an address family of
  12. * AF_BAN, a socket type of SOCK_DGRAM, SOCK_STREAM, or SOCK_SEQPACKET,
  13. * and protocol of 0.
  14. *
  15. ******************************************************************************/
  16. #ifndef _WSVNS_
  17. #define _WSVNS_
  18. #if _MSC_VER > 1000
  19. #pragma once
  20. #endif
  21. /*
  22. * Socket address, VINES IP style. Address fields and port field are defined
  23. * as a sequence of bytes. This is done because they are byte ordered
  24. * BIG ENDIAN, ala most significant byte first.
  25. */
  26. typedef struct sockaddr_vns {
  27. u_short sin_family; // = AF_BAN
  28. u_char net_address[4]; // network address
  29. u_char subnet_addr[2]; // subnet address
  30. u_char port[2]; // msb=port[0], lsb=port[1]
  31. u_char hops; // # hops for broadcasts
  32. u_char filler[5]; // filler, zeros
  33. } SOCKADDR_VNS, *PSOCKADDR_VNS, FAR *LPSOCKADDR_VNS;
  34. #define VNSPROTO_IPC 1
  35. #define VNSPROTO_RELIABLE_IPC 2
  36. #define VNSPROTO_SPP 3
  37. #endif _WSVNS_