SESSIONSTATS
The SESSIONSTATS structure provides statistics about a session.
typedef struct _SESSIONSTATS {
DWORD NextSession;
DWORD StationOwner;
DWORD StationPartner;
DWORD Flags;
DWORD TotalPacketsSent;
} SESSIONSTATS,
*LPSESSIONSTATS;
Members
- NextSession
Index of the station owner's next session. - StationOwner
Index of a owner station within the associated STATIONSTATS structure array. The owner station is the station that initiated the session, the station that sent the packets of the session. - StationPartner
Index of the other station within the associated STATIONSTATS structure array. The partner station is the station that received the packets of the session. - Flags
This member is obsolete. - TotalPacketsSent
Number of packets sent in the session.
Remarks
Network Monitor stores session and station information in two associated arrays, whose elements are SESSIONSTATS and STATIONSTATS structures respectively. The members of these structures can be used to navigate between them. For example, to move to the next session for a specific station owner, use NextSession. To jump to the owner and partner station of the session in the STATIONSTATS array, use the index provided in StationOwner and StationPartner.
Note The SESSIONSTATS array contains an element for each session in the current capture. The algorithm Network Monitor uses to add elements to the SESSIONSTATS array is based on efficiently recording information while the capture is in progress. Consequently, the next session for a specific owner station is not always the next element in the array.
Requirements
Client | Requires Windows XP, Windows 2000 Professional, or Windows NT Workstation 4.0. |
Server | Requires Windows Server 2003, Windows 2000 Server, or Windows NT Server 4.0. |
Header | Declared in Netmon.h. |
See Also
IDelaydC::GetConversationStatistics, IRTC::GetConversationStatistics, IStats::GetConversationStatistics