Ignore:
Timestamp:
Oct 26, 1999, 1:17:20 AM (26 years ago)
Author:
phaller
Message:

Fix: invalid structure alignment for asynchronous operations

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:03 phaller Exp $ */
     1/* $Id: wsock32const.h,v 1.3 1999-10-25 23:17:20 phaller Exp $ */
    22
    33/* WSOCK32.H--definitions & conversions for Odin's wsock32.dll.
     
    174174#define OS2WSAGETSELECTERROR(lParam)           HIWORD(lParam)
    175175
     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
     183struct  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 */
     196struct  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
     203struct  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
     210struct  Wprotoent {
     211        char     * p_name;           /* official protocol name */
     212        char     *  * p_aliases;  /* alias list */
     213        short   p_proto;                /* protocol # */
     214};
     215
     216
    176217#endif  /* _WINSOCK32CONST_ */
    177218
Note: See TracChangeset for help on using the changeset viewer.