#ifndef TDPN_Connection_InfoH #define TDPN_Connection_InfoH // ========================================================================== // File: TDPN_Connection_Info.H // Authors: BCB_Code_Generator v2.00, // Darren Dwyer (source code, documentation, demos, website), // Hugh Edwards (documentation, icons) // Description: This file defines the TDPN_Connection_Info Component // // "TDx9_Play_Library v1.00" // (c) 2005 BCB-Tools.com Pty. Ltd., Sydney, Australia. // All Rights Reserved. // // Refer to the 'Licence.Txt' file for licencing & copyright information. // ========================================================================== // -------------------------------------------------------------------------- #include "TDx_Library_Defns.H" #include "TDx_Library_Functions.H" // -------------------------------------------------------------------------- #include "TDx9_Play_Library_Defns.H" #include "TDx9_Play_Library_Functions.H" // -------------------------------------------------------------------------- // ========================================================================== // Class: TDPN_Connection_Info // Description: The TDPN_Connection_Info object is used to ... // ========================================================================== #if (__BORLANDC__ >= 0x0530) // BCB Version 3 + class PACKAGE TDPN_Connection_Info : public TComponent { // -------------------------------------------------------------------------- #else // BCB Version 1 class TDPN_Connection_Info : public TComponent { #endif // ========================================================================== __published: // ========================================================================== // ---------------------------------------------------------------------- // Property: BytesDropped // Description: ... // ---------------------------------------------------------------------- __property dword BytesDropped = { read=FGetBytesDropped, write=FSetBytesDropped, default=0 }; // ---------------------------------------------------------------------- // Property: BytesReceivedGuaranteed // Description: ... // ---------------------------------------------------------------------- __property dword BytesReceivedGuaranteed = { read=FGetBytesReceivedGuaranteed, write=FSetBytesReceivedGuaranteed, default=0 }; // ---------------------------------------------------------------------- // Property: BytesReceivedNonGuaranteed // Description: ... // ---------------------------------------------------------------------- __property dword BytesReceivedNonGuaranteed = { read=FGetBytesReceivedNonGuaranteed, write=FSetBytesReceivedNonGuaranteed, default=0 }; // ---------------------------------------------------------------------- // Property: BytesRetried // Description: ... // ---------------------------------------------------------------------- __property dword BytesRetried = { read=FGetBytesRetried, write=FSetBytesRetried, default=0 }; // ---------------------------------------------------------------------- // Property: BytesSentGuaranteed // Description: ... // ---------------------------------------------------------------------- __property dword BytesSentGuaranteed = { read=FGetBytesSentGuaranteed, write=FSetBytesSentGuaranteed, default=0 }; // ---------------------------------------------------------------------- // Property: BytesSentNonGuaranteed // Description: ... // ---------------------------------------------------------------------- __property dword BytesSentNonGuaranteed = { read=FGetBytesSentNonGuaranteed, write=FSetBytesSentNonGuaranteed, default=0 }; // ---------------------------------------------------------------------- // Property: MessagesReceived // Description: ... // ---------------------------------------------------------------------- __property dword MessagesReceived = { read=FGetMessagesReceived, write=FSetMessagesReceived, default=0 }; // ---------------------------------------------------------------------- // Property: MessagesTimedOutHighPriority // Description: ... // ---------------------------------------------------------------------- __property dword MessagesTimedOutHighPriority = { read=FGetMessagesTimedOutHighPriority, write=FSetMessagesTimedOutHighPriority, default=0 }; // ---------------------------------------------------------------------- // Property: MessagesTimedOutLowPriority // Description: ... // ---------------------------------------------------------------------- __property dword MessagesTimedOutLowPriority = { read=FGetMessagesTimedOutLowPriority, write=FSetMessagesTimedOutLowPriority, default=0 }; // ---------------------------------------------------------------------- // Property: MessagesTimedOutNormalPriority // Description: ... // ---------------------------------------------------------------------- __property dword MessagesTimedOutNormalPriority = { read=FGetMessagesTimedOutNormalPriority, write=FSetMessagesTimedOutNormalPriority, default=0 }; // ---------------------------------------------------------------------- // Property: MessagesTransmittedHighPriority // Description: ... // ---------------------------------------------------------------------- __property dword MessagesTransmittedHighPriority = { read=FGetMessagesTransmittedHighPriority, write=FSetMessagesTransmittedHighPriority, default=0 }; // ---------------------------------------------------------------------- // Property: MessagesTransmittedLowPriority // Description: ... // ---------------------------------------------------------------------- __property dword MessagesTransmittedLowPriority = { read=FGetMessagesTransmittedLowPriority, write=FSetMessagesTransmittedLowPriority, default=0 }; // ---------------------------------------------------------------------- // Property: MessagesTransmittedNormalPriority // Description: ... // ---------------------------------------------------------------------- __property dword MessagesTransmittedNormalPriority = { read=FGetMessagesTransmittedNormalPriority, write=FSetMessagesTransmittedNormalPriority, default=0 }; // ---------------------------------------------------------------------- // Property: PacketsDropped // Description: ... // ---------------------------------------------------------------------- __property dword PacketsDropped = { read=FGetPacketsDropped, write=FSetPacketsDropped, default=0 }; // ---------------------------------------------------------------------- // Property: PacketsReceivedGuaranteed // Description: ... // ---------------------------------------------------------------------- __property dword PacketsReceivedGuaranteed = { read=FGetPacketsReceivedGuaranteed, write=FSetPacketsReceivedGuaranteed, default=0 }; // ---------------------------------------------------------------------- // Property: PacketsReceivedNonGuaranteed // Description: ... // ---------------------------------------------------------------------- __property dword PacketsReceivedNonGuaranteed = { read=FGetPacketsReceivedNonGuaranteed, write=FSetPacketsReceivedNonGuaranteed, default=0 }; // ---------------------------------------------------------------------- // Property: PacketsRetried // Description: ... // ---------------------------------------------------------------------- __property dword PacketsRetried = { read=FGetPacketsRetried, write=FSetPacketsRetried, default=0 }; // ---------------------------------------------------------------------- // Property: PacketsSentGuaranteed // Description: ... // ---------------------------------------------------------------------- __property dword PacketsSentGuaranteed = { read=FGetPacketsSentGuaranteed, write=FSetPacketsSentGuaranteed, default=0 }; // ---------------------------------------------------------------------- // Property: PacketsSentNonGuaranteed // Description: ... // ---------------------------------------------------------------------- __property dword PacketsSentNonGuaranteed = { read=FGetPacketsSentNonGuaranteed, write=FSetPacketsSentNonGuaranteed, default=0 }; // ---------------------------------------------------------------------- // Property: PeakThroughputBPS // Description: ... // ---------------------------------------------------------------------- __property dword PeakThroughputBPS = { read=FGetPeakThroughputBPS, write=FSetPeakThroughputBPS, default=0 }; // ---------------------------------------------------------------------- // Property: RoundTripLatencyMS // Description: ... // ---------------------------------------------------------------------- __property dword RoundTripLatencyMS = { read=FGetRoundTripLatencyMS, write=FSetRoundTripLatencyMS, default=0 }; // ---------------------------------------------------------------------- // Property: ThroughputBPS // Description: ... // ---------------------------------------------------------------------- __property dword ThroughputBPS = { read=FGetThroughputBPS, write=FSetThroughputBPS, default=0 }; // ---------------------------------------------------------------------- // Event: OnError() // Description: The OnError event is called when an error occurs in the // TDPN_Connection_Info component. // ---------------------------------------------------------------------- __property TDx_Error OnError = {read=FOnError, write=FOnError, nodefault}; // ========================================================================== public: // ========================================================================== // ---------------------------------------------------------------------- // Property: ErrorValue // Description: The ErrorValue property contains the last error value // returned from a call to a TDPN_Connection_Info method or // fget/fset. eg. or DDERR_SURFACELOST or TDX_ERROR // ---------------------------------------------------------------------- __property HRESULT ErrorValue = { read=FGetErrorValue, write=FSetErrorValue, nodefault }; // ---------------------------------------------------------------------- // Property: Size // Description: The Size property contains the size in bytes of the // internal _DPN_CONNECTION_INFO structure. // ---------------------------------------------------------------------- __property dword Size = { read=FGetSize, write=FSetSize, nodefault }; // ---------------------------------------------------------------------- // Method: Clear() // Description: The Clear() method can be used to clear the contents of // the TDPN_Connection_Info's internal DPN_CONNECTION_INFO // structure. // Note: if you have manually linked a structure member to a // chunk of memory, make sure you release this memory before // calling Clear(). // ---------------------------------------------------------------------- virtual void __fastcall Clear(); // ---------------------------------------------------------------------- // Constructor() and Destructor() // ---------------------------------------------------------------------- __fastcall TDPN_Connection_Info(TComponent* Owner); virtual __fastcall ~TDPN_Connection_Info(); // ---------------------------------------------------------------------- // Internal Structure Access // ---------------------------------------------------------------------- __property DPN_CONNECTION_INFO* Internal_DPN_CONNECTION_INFO_Ptr = { read=FGetInternal_DPN_CONNECTION_INFO_Ptr, nodefault }; void __fastcall Internal_DPN_CONNECTION_INFO_Update(); // ========================================================================== protected: // ========================================================================== // ---------------------------------------------------------------------- // Property Access Methods // ---------------------------------------------------------------------- dword __fastcall FGetBytesDropped(); void __fastcall FSetBytesDropped( dword pBytesDropped ); dword __fastcall FGetBytesReceivedGuaranteed(); void __fastcall FSetBytesReceivedGuaranteed( dword pBytesReceivedGuaranteed ); dword __fastcall FGetBytesReceivedNonGuaranteed(); void __fastcall FSetBytesReceivedNonGuaranteed( dword pBytesReceivedNonGuaranteed ); dword __fastcall FGetBytesRetried(); void __fastcall FSetBytesRetried( dword pBytesRetried ); dword __fastcall FGetBytesSentGuaranteed(); void __fastcall FSetBytesSentGuaranteed( dword pBytesSentGuaranteed ); dword __fastcall FGetBytesSentNonGuaranteed(); void __fastcall FSetBytesSentNonGuaranteed( dword pBytesSentNonGuaranteed ); HRESULT __fastcall FGetErrorValue(); void __fastcall FSetErrorValue( HRESULT pErrorValue ); dword __fastcall FGetMessagesReceived(); void __fastcall FSetMessagesReceived( dword pMessagesReceived ); dword __fastcall FGetMessagesTimedOutHighPriority(); void __fastcall FSetMessagesTimedOutHighPriority( dword pMessagesTimedOutHighPriority ); dword __fastcall FGetMessagesTimedOutLowPriority(); void __fastcall FSetMessagesTimedOutLowPriority( dword pMessagesTimedOutLowPriority ); dword __fastcall FGetMessagesTimedOutNormalPriority(); void __fastcall FSetMessagesTimedOutNormalPriority( dword pMessagesTimedOutNormalPriority ); dword __fastcall FGetMessagesTransmittedHighPriority(); void __fastcall FSetMessagesTransmittedHighPriority( dword pMessagesTransmittedHighPriority ); dword __fastcall FGetMessagesTransmittedLowPriority(); void __fastcall FSetMessagesTransmittedLowPriority( dword pMessagesTransmittedLowPriority ); dword __fastcall FGetMessagesTransmittedNormalPriority(); void __fastcall FSetMessagesTransmittedNormalPriority( dword pMessagesTransmittedNormalPriority ); dword __fastcall FGetPacketsDropped(); void __fastcall FSetPacketsDropped( dword pPacketsDropped ); dword __fastcall FGetPacketsReceivedGuaranteed(); void __fastcall FSetPacketsReceivedGuaranteed( dword pPacketsReceivedGuaranteed ); dword __fastcall FGetPacketsReceivedNonGuaranteed(); void __fastcall FSetPacketsReceivedNonGuaranteed( dword pPacketsReceivedNonGuaranteed ); dword __fastcall FGetPacketsRetried(); void __fastcall FSetPacketsRetried( dword pPacketsRetried ); dword __fastcall FGetPacketsSentGuaranteed(); void __fastcall FSetPacketsSentGuaranteed( dword pPacketsSentGuaranteed ); dword __fastcall FGetPacketsSentNonGuaranteed(); void __fastcall FSetPacketsSentNonGuaranteed( dword pPacketsSentNonGuaranteed ); dword __fastcall FGetPeakThroughputBPS(); void __fastcall FSetPeakThroughputBPS( dword pPeakThroughputBPS ); dword __fastcall FGetRoundTripLatencyMS(); void __fastcall FSetRoundTripLatencyMS( dword pRoundTripLatencyMS ); dword __fastcall FGetSize(); void __fastcall FSetSize( dword pSize ); dword __fastcall FGetThroughputBPS(); void __fastcall FSetThroughputBPS( dword pThroughputBPS ); // ========================================================================== private: // ========================================================================== // ---------------------------------------------------------------------- // Internal Structure Access // ---------------------------------------------------------------------- DPN_CONNECTION_INFO* __fastcall FGetInternal_DPN_CONNECTION_INFO_Ptr(); void __fastcall FSetInternal_DPN_CONNECTION_INFO( DPN_CONNECTION_INFO* pDPN_CONNECTION_INFO ); // ---------------------------------------------------------------------- // Property Variables // ---------------------------------------------------------------------- HRESULT fErrorValue; dword fSize; // ---------------------------------------------------------------------- // Structure Variables // ---------------------------------------------------------------------- DPN_CONNECTION_INFO fDPN_CONNECTION_INFO; // ---------------------------------------------------------------------- // Event Variables // ---------------------------------------------------------------------- TDx_Error FOnError; }; // -------------------------------------------------------------------------- #endif // --------------------------------------------------------------------------