[This is preliminary documentation and subject to change.]
This sample demonstrates a connection-oriented NDIS 5.0 client. It shows how to establish and tear down a point-to-point or point-to-multipoint connection over ATM. A user mode application is provided, and will allow you to do the following with the driver:
1. Establish connection to remote (or local) machines. (P-P or PMP)
2. Send data over the established connection.
3. Receive all data to our SAP from the local adapter.
4. Tear down a connection that was previously established.
The sample works on both x86 and Alpha platforms and is 64-bit compliant. Both checked and free builds are available.
In Network Connections UI, select an ATM adapter and open Properties.
Click Install, then Protocol, then Add, and then Have disk.Then point to the location of the .inf and driver.
Select ATM Sample Client Protocol and click OK.
The full NSAP address should be specified. Selector Byte defaults to 05.
BUILDING THE SAMPLE
From the Free or Checked Build environment, execute build in the Atmsmple directory.
INSTALLATION
The driver is installed using the file Netatmsm.inf, which is provided in the driver directory. USAGE
For help on usage, run tmSmApp -?. Details follow.AtmSmApp /Start
AtmSmApp /Enum
AtmSmApp /INTF:4700918100000000613E5BFE010000C100741F00 /RECV
AtmSmApp /INTF:4700...41F00 /SEND:4700...41F00,4700...123F00
TIPS
With a checked binary, you can control the volume of debug information generated by changing the variable AtmSmDebugFlag. Refer to AtmSmDbg.h for more information.
CODE TOUR
File Manifest
Inc
File Description Atmsample.h Definitions of the IOCTLS App
File Description Atmsmapp.c User-mode test application Utils.c Helper routines for the user-mode app Driver
File Description Adapter.c Adapter structure related routines Atmsmdbg.c Memory management in debug build Atmsmdrv.c Driver entry and initialization routines Callmgr.c Interface to the call manager Globals.c Global data for the driver Ioctl.c Io Control Interface with the user mode Misc.c ReferenceVc, DereferenceVc, DisconnectVc, etc. Request.c NDIS request routines Sendrecv.c Packet send and receive related routines Netatmsm.inf Installation file
© Microsoft Corporation 1999