メイン   モジュール   デー タ構造   ファイルリスト   データフィールド   グローバル   関連ページ   注意事項   English

_ADAPTER Struct Reference
[Packet.dll definitions and data structures]

Describes a network adapter. More...

#include <Packet32.h>


Data Fields

HANDLE hFile
 Handle to an open instance of the NPF driver.

CHAR SymbolicLink [MAX_LINK_NAME_LENGTH]
 A string containing the name of the network adapter currently opened.

int NumWrites
HANDLE ReadEvent
UINT ReadTimeOut


Detailed Description

Describes a network adapter.

This structure is the most important for the functioning of packet.dll, but the great part of its fields should be ignored by the user, since the library offers functions that avoid to cope with low-level parameters

Definition at line 183 of file Packet32.h.


Field Documentation

HANDLE hFile
 

Handle to an open instance of the NPF driver.

For internal use only.

Definition at line 184 of file Packet32.h.

Referenced by main(), PacketCloseAdapter(), PacketGetStats(), PacketGetStatsEx(), PacketIsDumpEnded(), PacketOpenAdapter(), PacketReceivePacket(), PacketRequest(), PacketSendPacket(), PacketSendPackets(), PacketSetBpf(), PacketSetBuff(), PacketSetDumpLimits(), PacketSetDumpName(), PacketSetMinToCopy(), PacketSetMode(), PacketSetNumWrites(), PacketSetReadEvt(), and PacketSetReadTimeout().

int NumWrites
 

For internal use only.

Number of times a packets written on this adapter will be repeated on the wire.

Definition at line 186 of file Packet32.h.

Referenced by PacketOpenAdapter().

HANDLE ReadEvent
 

A notification event associated with the read calls on the adapter. It can be passed to standard Win32 functions (like WaitForSingleObject or WaitForMultipleObjects) to wait until the driver's buffer contains some data. It is particularly useful in GUI applications that need to wait concurrently on several events. In Windows NT/2000 the PacketSetMinToCopy() function can be used to define the minimum amount of data in the kernel buffer that will cause the event to be signalled.

Definition at line 188 of file Packet32.h.

Referenced by PacketCloseAdapter(), PacketGetReadEvent(), PacketIsDumpEnded(), PacketReceivePacket(), and PacketSetReadEvt().

UINT ReadTimeOut
 

For internal use only.

The amount of time after which a read on the driver will be released and ReadEvent will be signaled, also if no packets were captured

Definition at line 196 of file Packet32.h.

Referenced by PacketReceivePacket(), PacketSetReadEvt(), and PacketSetReadTimeout().

CHAR SymbolicLink[MAX_LINK_NAME_LENGTH]
 

A string containing the name of the network adapter currently opened.

For internal use only.

Definition at line 185 of file Packet32.h.

Referenced by PacketOpenAdapter().


The documentation for this struct was generated from the following file:

documentation. Copyright (c)2002-2003 Politecnico di Torino.
2005 translated by Telebusiness,Inc.
 All rights reserved.