home *** CD-ROM | disk | FTP | other *** search
/ Mac Power 1999 February / MACPOWER-1999-02.ISO.7z / MACPOWER-1999-02.ISO / 9902⁄AMUG / UTILITY / mac06-0.95.sit / mac06-0.95 / usr / include / netinet / netinet_in.h < prev    next >
Text File  |  1998-02-14  |  493b  |  23 lines

  1. /* mac06ゥ1997 by HNS/DSITRI hns@computer.org
  2. ** netinet/in.h
  3. */
  4.  
  5. #pragma once
  6.  
  7. struct in_addr
  8.     {
  9.     unsigned long s_addr;        /* the address; may be extended for IPv6 */
  10.     };
  11.  
  12. struct sockaddr_in
  13.     {
  14.     unsigned short sin_family;    /* should be AF_INET! */
  15.     short sin_port;                    /* the port */
  16.     struct in_addr sin_addr;
  17.     char fill[16-sizeof(unsigned short)-sizeof(short)-sizeof(unsigned long)];
  18.     };
  19.  
  20. #define INADDR_ANY        0                /* any host */
  21. #define INADDR_LOCAL    ((127<<24)+1)    /* the local host */
  22.  
  23. /* EOF */