00001 /* 00002 * wsipx.h 00003 * 00004 * Microsoft Windows 00005 * Copyright (C) Microsoft Corporation, 1992-1997. 00006 * 00007 * Windows Sockets include file for IPX/SPX. This file contains all 00008 * standardized IPX/SPX information. Include this header file after 00009 * winsock.h. 00010 * 00011 * To open an IPX socket, call socket() with an address family of 00012 * AF_IPX, a socket type of SOCK_DGRAM, and protocol NSPROTO_IPX. 00013 * Note that the protocol value must be specified, it cannot be 0. 00014 * All IPX packets are sent with the packet type field of the IPX 00015 * header set to 0. 00016 * 00017 * To open an SPX or SPXII socket, call socket() with an address 00018 * family of AF_IPX, socket type of SOCK_SEQPACKET or SOCK_STREAM, 00019 * and protocol of NSPROTO_SPX or NSPROTO_SPXII. If SOCK_SEQPACKET 00020 * is specified, then the end of message bit is respected, and 00021 * recv() calls are not completed until a packet is received with 00022 * the end of message bit set. If SOCK_STREAM is specified, then 00023 * the end of message bit is not respected, and recv() completes 00024 * as soon as any data is received, regardless of the setting of the 00025 * end of message bit. Send coalescing is never performed, and sends 00026 * smaller than a single packet are always sent with the end of 00027 * message bit set. Sends larger than a single packet are packetized 00028 * with the end of message bit set on only the last packet of the 00029 * send. 00030 * 00031 */ 00032 00033 #ifndef _WSIPX_ 00034 #define _WSIPX_ 00035 00036 /* 00037 * This is the structure of the SOCKADDR structure for IPX and SPX. 00038 * 00039 */ 00040 00041 typedef struct sockaddr_ipx { 00042 short sa_family; 00043 char sa_netnum[4]; 00044 char sa_nodenum[6]; 00045 unsigned short sa_socket; 00046 } SOCKADDR_IPX, *PSOCKADDR_IPX,FAR *LPSOCKADDR_IPX; 00047 00048 /* 00049 * Protocol families used in the "protocol" parameter of the socket() API. 00050 * 00051 */ 00052 00053 #define NSPROTO_IPX 1000 00054 #define NSPROTO_SPX 1256 00055 #define NSPROTO_SPXII 1257 00056 00057 #endif 00058