2004-06-09_TDISources

所属分类:TCP/IP协议栈
开发工具:C/C++
文件大小:544KB
下载次数:93
上传日期:2006-01-17 17:34:42
上 传 者hanamau
说明:  一个关于TDI的例子,包括TCP test ,TCP echo等,以及简单API
(an example of TDI, including TCP test, TCP echo, as well as a simple API)

文件列表:
PCADev\TDISAMP\Apps\PCATTCP\getopt.c (8447, 1999-04-20)
PCADev\TDISAMP\Apps\PCATTCP\getopt.h (1603, 1999-04-20)
PCADev\TDISAMP\Apps\PCATTCP\PCATTCP.C (24262, 2000-01-26)
PCADev\TDISAMP\Apps\PCATTCP\PCATTCP.DSP (3726, 2000-01-11)
PCADev\TDISAMP\Apps\PCATTCP\Pcattcp.dsw (639, 2000-01-11)
PCADev\TDISAMP\Apps\PCATTCP\PCATTCP.rc (2505, 2000-04-30)
PCADev\TDISAMP\Apps\PCATTCP\resource.h (411, 1999-04-20)
PCADev\TDISAMP\Apps\PCATTCP\TTCP.C (20947, 1999-09-03)
PCADev\TDISAMP\Apps\PCATTCP\ttcp\ttcp.c (20013, 1999-04-20)
PCADev\TDISAMP\Apps\TDIQ\resource.h (408, 2000-02-17)
PCADev\TDISAMP\Apps\TDIQ\TDIQ.C (18488, 2000-02-23)
PCADev\TDISAMP\Apps\TDIQ\TDIQ.DSP (3730, 2000-03-06)
PCADev\TDISAMP\Apps\TDIQ\TDIQ.DSW (635, 2000-03-06)
PCADev\TDISAMP\Apps\TDIQ\TDIQ.rc (2521, 2000-04-30)
PCADev\TDISAMP\Apps\TDIQ\TDIQHelp.c (18180, 2000-02-23)
PCADev\TDISAMP\Apps\TDIQ\TDIQHELP.H (1321, 2000-02-17)
PCADev\TDISAMP\Apps.NT\TTCPCtrl\TTCPCtrl.rc (2485, 2000-04-30)
PCADev\TDISAMP\Apps.NT\TTCPCtrl\GETOPT.H (1600, 2000-01-26)
PCADev\TDISAMP\Apps.NT\TTCPCtrl\resource.h (412, 2000-02-09)
PCADev\TDISAMP\Apps.NT\TTCPCtrl\TTCPCtrl.c (12607, 2000-02-09)
PCADev\TDISAMP\Apps.NT\TTCPCtrl\TTCPCtrl.dsp (3722, 2000-03-06)
PCADev\TDISAMP\Apps.NT\TTCPCtrl\TTCPCtrl.dsw (650, 2000-03-06)
PCADev\TDISAMP\Apps.NT\TTCPCtrl\getopt.c (8447, 2000-01-26)
PCADev\TDISAMP\Doc\RELEASE.TXT (4712, 2000-04-30)
PCADev\TDISAMP\Drivers.NT\KSInc\KSUtil.h (14515, 2000-04-26)
PCADev\TDISAMP\Drivers.NT\KSInc\KSTcpEx.h (6380, 2000-02-13)
PCADev\TDISAMP\Drivers.NT\KSLib\makefile (265, 2000-01-22)
PCADev\TDISAMP\Drivers.NT\KSLib\KSUtil.c (121723, 2000-04-30)
PCADev\TDISAMP\Drivers.NT\KSLib\KSTcpEx.c (12530, 2000-02-22)
PCADev\TDISAMP\Drivers.NT\KSLib\SOURCES (349, 2000-02-13)
PCADev\TDISAMP\Drivers.NT\DIRS (97, 2000-04-26)
PCADev\TDISAMP\Drivers.NT\TDIEcho\UDPEcho.h (1127, 2000-02-06)
PCADev\TDISAMP\Drivers.NT\TDIEcho\Sources (439, 2000-02-13)
PCADev\TDISAMP\Drivers.NT\TDIEcho\TCPEcho.c (48469, 2000-04-29)
PCADev\TDISAMP\Drivers.NT\TDIEcho\TCPEcho.h (1127, 2000-02-06)
PCADev\TDISAMP\Drivers.NT\TDIEcho\TDIEcho.C (8229, 2000-04-29)
PCADev\TDISAMP\Drivers.NT\TDIEcho\TDIEcho.H (1353, 2000-02-06)
PCADev\TDISAMP\Drivers.NT\TDIEcho\TDIEcho.ini (184, 2000-02-05)
PCADev\TDISAMP\Drivers.NT\TDIEcho\TDIEcho.RC (1577, 2000-04-28)
... ...

TDI Query (TDIQ) Test Tool Version V1.00.00.01 February 17, 2000 Copyright (c) 2000 Printing Communications Assoc., Inc. - PCAUSA - Printing Communications Assoc., Inc. 4201 Brunswick Court Smyrna, GA 30080 USA TEL: (770) 432-4580 FAX: (770) 436-7246 E-Mail: tdiq@pcausa.com TDIQ OVERVIEW ============= The TDI Query (TDIQ) Test Tool is a test application developed in support of the PCAUSA TDI Client 2000 samples. It's purpose is to explore the use of extended TDI queries using IOCTL_TCP_QUERY_INFORMATION_EX on the Windows NT platform from the safety and comfort of a Win32 application. An unexpected fallout from this development is an application which can query IP configuration, route and statistics information. The information that can be queried by TDIQ is similar to that provided by the "new" IPHelper library. However, unlike IPHelper, TDIQ works on ALL current Windows platforms from the original Windows 95 through Windows 2000. It does this without the suport of IPHelper functions or WSAIoctl functions, and does not require Winsock 2 support. (Winsock 1.1 is used primarily for address-to-string conversion routines...). TDIQ does NOT support setting of information at this time. TDIQ is a command-line executable. It can display three categories of information selected by command-line options: IP Configuration Information - Similar to IPCONFIG. Enter: C:> tdiq -ipconfig IP Route Information - Similar to ROUTE PRINT. Enter C:> tdiq -iproute IP Statistics Information - Similar to IpHelper IPSTAT. Enter: C:> tdiq -ipstat All Available Information. Enter: C:> tdiq -all Here is sample output from TDIQ from a Windows NT platform: TDIQ IP Configuration Information Sample Output =============================================== C:> tdiq -ipconfig TDI Query (TDIQ) Test Tool for Windows NT - V1.00.00.01 Copyright (c) 2000 Printing Communications Assoc., Inc (PCAUSA) IP Configuration: Ethernet Adapter: Description..........: 3Com 3C90x Ethernet Adapter Physical Address.....: 00-60-08-A3-29-D0 IP Address...........: 172.16.1.130 Subnet Mask..........: 255.255.255.0 Default Gateway......: 172.16.1.1 Speed................: 100000000 bits/second MTU (Local Nodes)....: 1480 bytes Ethernet Adapter: Description..........: Intel EtherExpress PRO PCI Adapter Physical Address.....: 00-90-27-8C-B4-92 IP Address...........: 172.16.3.33 Subnet Mask..........: 255.255.255.0 Default Gateway......: 172.16.3.33 Speed................: 10000000 bits/second MTU (Local Nodes)....: 1480 bytes Ethernet Adapter: Description..........: Intel EtherExpress PRO PCI Adapter Physical Address.....: 00-90-27-8C-B4-91 IP Address...........: 172.16.2.33 Subnet Mask..........: 255.255.255.0 Default Gateway......: 172.16.2.33 Speed................: 100000000 bits/second MTU (Local Nodes)....: 1480 bytes Loopback Adapter: Description..........: MS TCP Loopback interface Physical Address.....: IP Address...........: 127.0.0.1 Subnet Mask..........: 255.0.0.0 Default Gateway......: 127.0.0.1 Speed................: 10000000 bits/second MTU (Local Nodes)....: 1480 bytes TDIQ IP Route Information Sample Output ======================================= C:> tdiq -iproute TDI Query (TDIQ) Test Tool for Windows NT - V1.00.00.01 Copyright (c) 2000 Printing Communications Assoc., Inc (PCAUSA) ========================================================================== Interface List: 0x1 ........................... MS TCP Loopback interface 0x2 ...00-90-27-8C-B4-91....... Intel EtherExpress PRO PCI Adapter 0x3 ...00-90-27-8C-B4-92....... Intel EtherExpress PRO PCI Adapter 0x4 ...00-60-08-A3-29-D0....... 3Com 3C90x Ethernet Adapter ========================================================================== ========================================================================== Active Routes: Network Address Netmask Gateway Address Interface Metric 172.16.3.33 255.255.255.255 127.0.0.1 127.0.0.1 1 224.0.0.0 224.0.0.0 172.16.2.33 172.16.2.33 1 224.0.0.0 224.0.0.0 172.16.3.33 172.16.3.33 1 224.0.0.0 224.0.0.0 172.16.1.130 172.16.1.130 1 0.0.0.0 0.0.0.0 172.16.1.1 172.16.1.130 1 172.16.255.255 255.255.255.255 172.16.2.33 172.16.2.33 1 255.255.255.255 255.255.255.255 172.16.2.33 172.16.2.33 1 172.16.2.0 255.255.255.0 172.16.2.33 172.16.2.33 1 172.16.3.0 255.255.255.0 172.16.3.33 172.16.3.33 1 172.16.1.0 255.255.255.0 172.16.1.130 172.16.1.130 1 172.16.2.33 255.255.255.255 127.0.0.1 127.0.0.1 1 172.16.1.130 255.255.255.255 127.0.0.1 127.0.0.1 1 127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1 ========================================================================== TDIQ IP Statistics Sample Output ================================ C:> tdiq -ipstat TDI Query (TDIQ) Test Tool for Windows NT - V1.00.00.01 Copyright (c) 2000 Printing Communications Assoc., Inc (PCAUSA) IP Statistics: dwForwarding = 2 dwDefaultTTL = 128 dwInReceives = ***97 dwInHdrErrors = 0 dwInAddrErrors = 0 dwForwDatagrams = 0 dwInUnknownProtos = 0 dwInDiscards = 0 dwInDelivers = ***97 dwOutRequests = 3138 dwRoutingDiscards = 0 dwOutDiscards = 0 dwOutNoRoutes = 0 dwReasmTimeout = 60 dwReasmReqds = 0 dwReasmOks = 0 dwReasmFails = 0 dwFragOks = 0 dwFragFails = 0 dwFragCreates = 0 dwNumIf = 4 dwNumAddr = 4 dwNumRoutes = 13 TDIQ Source Code ================ Sources to the TDI Query (TDIQ) Test Tool are included in the PCAUSA TDI Client 2000 samples. Building TDIQ ============= TDIQ sources are provided as a Microsoft Visual C++ 5.0 project. This is easily concerted to a Microsoft Visual C++ 6.0 project when the .DSP file is opened. Building TDIQ requires some header files from the Windows NT 4.0 DDK. You will probably need to modify the Visual C++ Additional include directory settings for the C/C++ Preprocessor to reflect the location of your DDK. Be sure to make this change for "All configurations".

近期下载者

相关文件


收藏者