上传日期:2003-10-16 22:52:18
上 传 者管理员
说明:  一个演示使用ipx协议在局域网来传递包的例子
(-A example which demonstrates how to uses ipx protocol to transmit packet in LAN.)

3C5X9PD.COM (12672, 1994-09-07)
CHAT.C (8251, 1997-04-03)
CHAT.EXE (19204, 1997-05-02)
CL.BAT (22, 1997-04-01)
LOADIPX.BAT (21, 1997-03-27)
PDIPX.COM (26511, 1996-07-12)
README.DOC (25153, 1997-04-03)
RIPX.C (6029, 1997-06-28)
RIPX.H (2977, 1997-03-27)

Using The IPX Network Protocol ============================== This document describes the purpose of the files RIPX.H, RIPX.C and CHAT.C and how they use IPX to transmit packets over a local area network. Firstly, many thanks must go to Daniel Parnell (daniel@bunyip.ph.rmit.oz.au) for his general info on IPX programming and background (See Below). To use IPX you must obviously have a network card and the necessary drivers. The IPX driver PDIPX.COM interfaces with your network card via something called a 'packet driver'. For example, I use a 3COM card and to set up IPX I must first load the 3C5X9PD.COM packet driver and then the PDIPX.COM driver. You'll need to refer to your network card docs to identify the relevant driver, etc. BTW, I've only tested these routines from DOS. If you try running from Windows 3.x/95 I'm not sure what the results will be. All routines should be re-compiled using the LARGE memory model. If you are looking to use protected mode then you should try and find a file called IPXPMODE.ZIP. I haven't included my protected mode version 'cos I use the underestimated Symantec C/C++ compiler which comes with its own DOS extender. This differs quite markedly from the 'normal' Watcom compiler. IPXPMODE.ZIP is based on using Watcom though. If you find these routines useful, drop me a line. CyberFrog 8:) (RoccoLoscalzo@compuserve.com) ************************************************************************* IIIIII PPPPPP XX XX II PP PP XX XX II PP PP XX XX II PP PP XX XX II PP PP XX XX II PPPPPP XXX II PP XX XX II PP XX XX II PP XX XX How to send IPX packets over a II PP XX XX network by Daniel Parnell IIIIII PP XX XX s921878@minyos.xx.rmit.oz.au daniel@bunyip.ph.rmit.oz.au Started : 29th March 1994 Last Mod: 2nd September 1994 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= On March 24th 1994 I managed to send my first IPX packet. This was a very exciting moment for me as it opened up a vast number of applications that were before closed to me. NETWORKED GAMES!!! :) This document attempts to guide the would be IPXer in the techniques of sending IPX packets. Admittedly, it has only been 5 days since my first sucessful packet, but in that short time I have developed a set of routines that seem to work quite well. :) These routines are included in appendix A and an example program is included in appendix B. These routines are written in Turbo Pascal 6.0, but should be reasonably portable to other languages. First of all, a little background. IPX is a protocol that allows packets of information to be sent over a network. These packets can be sent from one machine to another or sent to all machines (nodes). Sending a packet to all machines is called a BROADCAST. A broadcast will usually be confined to just the local network, however there are ways around this which I will not go into here. ;) These packets have a specific structure which is shown in figure 1. Figure 1 - The IPX header ------------------------------------------------------------------------ | Name | Size (bytes) | Description | ----------------|--------------|---------------------------------------| |Check | 2 bytes | Bigendian check sum | |Length | 2 bytes | Bigendian length of packet | ... ...