Properties | |
| LONG | OriginalSize [get, set] |
| Original frame size. | |
| LONG | DataSize [get, set] |
| Data buffer size. | |
| VARIANT | Data [get, set] |
| Frame data. | |
| DATE | Date [get, set] |
| Capture date. | |
| LONG | TimeSec [get, set] |
| Capture time. | |
| LONG | TimeUSec [get, set] |
| Capture microseconds. | |
| SAFEARRAY | DataArray [get] |
| Data byte array. | |
| PktXProtocolType | Protocol [get] |
| Protocol type. | |
| BSTR | SourceMacAddress [get] |
| Source MAC address. | |
| BSTR | DestMacAddress [get] |
| Destination MAC address. | |
| BSTR | SourceIpAddress [get] |
| Source IP address. | |
| BSTR | DestIpAddress [get] |
| Destination IP address. | |
| LONG | SourcePort [get] |
| Source port. | |
| LONG | DestPort [get] |
| Destination port. | |
This interface can be used to work with packet raw data and protocol information.
HRESULT IPktXPacket::OriginalSize [get, set] |
HRESULT IPktXPacket::DataSize [get, set] |
HRESULT IPktXPacket::Data [get, set] |
Frame data.
Returns first N (or all) bytes of captured network frame.
'// Create PackeX instance Set oPktX = WScript.CreateObject("PktX.PacketX","PacketX_") ... '// Packet handler Public Sub PacketX_OnPacket(ByRef oPacket) For Each bByte In oPacket.Data '// Do something Next End Sub
'// Create packet Set tmpPkt = New Packet '// Prepare VARIANT array Dim oData(2) oData(0) = 1 oData(1) = 2 oData(2) = 3 '// Pass the array tmpPkt.Data = oData
HRESULT IPktXPacket::Date [get, set] |
HRESULT IPktXPacket::TimeSec [get, set] |
Capture time.
Returns capture time in the standard UNIX time format (number of seconds from 1/1/1970).
HRESULT IPktXPacket::TimeUSec [get, set] |
Capture microseconds.
Returns the microseconds since system boot at the moment of capture.
HRESULT IPktXPacket::DataArray [get] |
Data byte array.
Returns packet data as array of bytes.
HRESULT IPktXPacket::Protocol [get] |
HRESULT IPktXPacket::SourceMacAddress [get] |
HRESULT IPktXPacket::DestMacAddress [get] |
HRESULT IPktXPacket::SourceIpAddress [get] |
HRESULT IPktXPacket::DestIpAddress [get] |
HRESULT IPktXPacket::SourcePort [get] |
Source port.
Returns source port number.
HRESULT IPktXPacket::DestPort [get] |
Destination port.
Returns destination port number.