Changeset 1451 for trunk/src/wsock32/wsock32.h
- Timestamp:
- Oct 26, 1999, 1:17:20 AM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wsock32/wsock32.h
r1372 r1451 1 /* $Id: wsock32.h,v 1. 5 1999-10-20 10:03:54phaller Exp $ */1 /* $Id: wsock32.h,v 1.6 1999-10-25 23:17:19 phaller Exp $ */ 2 2 3 3 /* WSOCK32.H--definitions & conversions for Odin's wsock32.dll. … … 73 73 */ 74 74 typedef u_int SOCKET; 75 76 77 78 79 typedef struct AsyncStatus {80 HWND hwnd; // owner's hwindow81 u_int msg; // message to send when event occurs82 ULONG event; // event that may occur83 SOCKET socket; // the socket84 int status; // blocking yes/no85 TID threadID; // Thread ID for async86 int MsgStat; // has message been sent yet?87 struct AsyncStatus *Next; // pointer to next AsyncStatus in the list88 struct AsyncStatus *Prev; // pointer to previous AsyncStatus in the list89 } AsyncStatus;90 91 92 93 75 94 76 … … 201 183 #define WSIOCGLOWAT _IOR('s', 3, u_long) /* get low watermark */ 202 184 #define WSIOCATMARK _IOR('s', 7, u_long) /* at oob mark? */ 203 204 /*205 * Structures returned by network data base library, taken from the206 * BSD file netdb.h. All addresses are supplied in host order, and207 * returned in network order (suitable for use in system calls).208 */209 210 struct Whostent {211 char * h_name; /* official name of host */212 char * * h_aliases; /* alias list */213 short h_addrtype; /* host address type */214 short h_length; /* length of address */215 char * * h_addr_list; /* list of addresses */216 #define h_addr h_addr_list[0] /* address, for backward compat */217 };218 219 /*220 * It is assumed here that a network number221 * fits in 32 bits.222 */223 struct Wnetent {224 char * n_name; /* official name of net */225 char * * n_aliases; /* alias list */226 short n_addrtype; /* net address type */227 u_long n_net; /* network # */228 };229 230 struct Wservent {231 char * s_name; /* official service name */232 char * * s_aliases; /* alias list */233 short s_port; /* port # */234 char * s_proto; /* protocol to use */235 };236 237 struct Wprotoent {238 char * p_name; /* official protocol name */239 char * * p_aliases; /* alias list */240 short p_proto; /* protocol # */241 };242 185 243 186 /*
Note:
See TracChangeset
for help on using the changeset viewer.