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/wsock32.h

    r1372 r1451  
    1 /* $Id: wsock32.h,v 1.5 1999-10-20 10:03:54 phaller Exp $ */
     1/* $Id: wsock32.h,v 1.6 1999-10-25 23:17:19 phaller Exp $ */
    22
    33/* WSOCK32.H--definitions & conversions for Odin's wsock32.dll.
     
    7373 */
    7474typedef u_int           SOCKET;
    75 
    76 
    77 
    78 
    79 typedef struct AsyncStatus {
    80     HWND hwnd;     // owner's hwindow
    81     u_int msg;     // message to send when event occurs
    82     ULONG event;    // event that may occur
    83     SOCKET socket; // the socket
    84     int status;    // blocking yes/no
    85     TID threadID;  // Thread ID for async
    86     int MsgStat;   // has message been sent yet?
    87     struct AsyncStatus *Next; // pointer to next AsyncStatus in the list
    88     struct AsyncStatus *Prev; // pointer to previous AsyncStatus in the list
    89 } AsyncStatus;
    90 
    91 
    92 
    9375
    9476
     
    201183#define WSIOCGLOWAT  _IOR('s',  3, u_long)  /* get low watermark */
    202184#define WSIOCATMARK  _IOR('s',  7, u_long)  /* at oob mark? */
    203 
    204 /*
    205  * Structures returned by network data base library, taken from the
    206  * BSD file netdb.h.  All addresses are supplied in host order, and
    207  * 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 number
    221  * 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 };
    242185
    243186/*
Note: See TracChangeset for help on using the changeset viewer.