Changeset 1451 for trunk/src/wsock32/wsock32const.h
- Timestamp:
- Oct 26, 1999, 1:17:20 AM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wsock32/wsock32const.h
r1384 r1451 1 /* $Id: wsock32const.h,v 1. 2 1999-10-20 20:11:03phaller Exp $ */1 /* $Id: wsock32const.h,v 1.3 1999-10-25 23:17:20 phaller Exp $ */ 2 2 3 3 /* WSOCK32.H--definitions & conversions for Odin's wsock32.dll. … … 174 174 #define OS2WSAGETSELECTERROR(lParam) HIWORD(lParam) 175 175 176 177 /* 178 * Structures returned by network data base library, taken from the 179 * BSD file netdb.h. All addresses are supplied in host order, and 180 * returned in network order (suitable for use in system calls). 181 */ 182 183 struct Whostent { 184 char * h_name; /* official name of host */ 185 char * * h_aliases; /* alias list */ 186 short h_addrtype; /* host address type */ 187 short h_length; /* length of address */ 188 char * * h_addr_list; /* list of addresses */ 189 #define h_addr h_addr_list[0] /* address, for backward compat */ 190 }; 191 192 /* 193 * It is assumed here that a network number 194 * fits in 32 bits. 195 */ 196 struct Wnetent { 197 char * n_name; /* official name of net */ 198 char * * n_aliases; /* alias list */ 199 short n_addrtype; /* net address type */ 200 u_long n_net; /* network # */ 201 }; 202 203 struct Wservent { 204 char * s_name; /* official service name */ 205 char * * s_aliases; /* alias list */ 206 short s_port; /* port # */ 207 char * s_proto; /* protocol to use */ 208 }; 209 210 struct Wprotoent { 211 char * p_name; /* official protocol name */ 212 char * * p_aliases; /* alias list */ 213 short p_proto; /* protocol # */ 214 }; 215 216 176 217 #endif /* _WINSOCK32CONST_ */ 177 218
Note:
See TracChangeset
for help on using the changeset viewer.