Annotation of mstools/h/wsipx.h, revision 1.1

1.1     ! root        1: /*
        !             2:  *   wsipx.h
        !             3:  *
        !             4:  *   Windows Sockets include file for IPX/SPX.  This file contains all
        !             5:  *   standardized IPX/SPX information.  Include this header file after
        !             6:  *   winsock.h.
        !             7:  *
        !             8:  *   To open an IPX socket, call socket() with an address family of
        !             9:  *   AF_IPX, a socket type of SOCK_DGRAM, and protocol NSPROTO_IPX.
        !            10:  *   Note that the protocol value must be specified, it cannot be 0.
        !            11:  *   All IPX packets are sent with the packet type field of the IPX
        !            12:  *   header set to 0.
        !            13:  *
        !            14:  *   To open an SPX or SPXII socket, call socket() with an address
        !            15:  *   family of AF_IPX, socket type of SOCK_SEQPACKET or SOCK_STREAM,
        !            16:  *   and protocol of NSPROTO_SPX or NSPROTO_SPXII.  If SOCK_SEQPACKET
        !            17:  *   is specified, then the end of message bit is respected, and
        !            18:  *   recv() calls are not completed until a packet is received with
        !            19:  *   the end of message bit set.  If SOCK_STREAM is specified, then
        !            20:  *   the end of message bit is not respected, and recv() completes
        !            21:  *   as soon as any data is received, regardless of the setting of the
        !            22:  *   end of message bit.  Send coalescing is never performed, and sends
        !            23:  *   smaller than a single packet are always sent with the end of
        !            24:  *   message bit set.  Sends larger than a single packet are packetized
        !            25:  *   with the end of message bit set on only the last packet of the
        !            26:  *   send.
        !            27:  *
        !            28:  */
        !            29: 
        !            30: #ifndef _WSIPX_
        !            31: #define _WSIPX_
        !            32: 
        !            33: /*
        !            34:  *   This is the structure of the SOCKADDR structure for IPX and SPX.
        !            35:  *
        !            36:  */
        !            37: 
        !            38: typedef struct sockaddr_ipx {
        !            39:     short sa_family;
        !            40:     char  sa_netnum[4];
        !            41:     char  sa_nodenum[6];
        !            42:     unsigned short sa_socket;
        !            43: } SOCKADDR_IPX, *PSOCKADDR_IPX,FAR *LPSOCKADDR_IPX;
        !            44: 
        !            45: /*
        !            46:  *   Protocol families used in the "protocol" parameter of the socket() API.
        !            47:  *
        !            48:  */
        !            49: 
        !            50: #define NSPROTO_IPX      1000
        !            51: #define NSPROTO_SPX      1256
        !            52: #define NSPROTO_SPXII    1257
        !            53: 
        !            54: #endif
        !            55: 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.