5 * Copyright (C) Microsoft Corporation, 1992-1996.
7 * Windows Sockets include file for IPX/SPX. This file contains all
8 * standardized IPX/SPX information. Include this header file after
11 * To open an IPX socket, call socket() with an address family of
12 * AF_IPX, a socket type of SOCK_DGRAM, and protocol NSPROTO_IPX.
13 * Note that the protocol value must be specified, it cannot be 0.
14 * All IPX packets are sent with the packet type field of the IPX
17 * To open an SPX or SPXII socket, call socket() with an address
18 * family of AF_IPX, socket type of SOCK_SEQPACKET or SOCK_STREAM,
19 * and protocol of NSPROTO_SPX or NSPROTO_SPXII. If SOCK_SEQPACKET
20 * is specified, then the end of message bit is respected, and
21 * recv() calls are not completed until a packet is received with
22 * the end of message bit set. If SOCK_STREAM is specified, then
23 * the end of message bit is not respected, and recv() completes
24 * as soon as any data is received, regardless of the setting of the
25 * end of message bit. Send coalescing is never performed, and sends
26 * smaller than a single packet are always sent with the end of
27 * message bit set. Sends larger than a single packet are packetized
28 * with the end of message bit set on only the last packet of the
37 * This is the structure of the SOCKADDR structure for IPX and SPX.
41 typedef struct sockaddr_ipx {
45 unsigned short sa_socket;
46 } SOCKADDR_IPX, *PSOCKADDR_IPX,FAR *LPSOCKADDR_IPX;
49 * Protocol families used in the "protocol" parameter of the socket() API.
53 #define NSPROTO_IPX 1000
54 #define NSPROTO_SPX 1256
55 #define NSPROTO_SPXII 1257