Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Сети";
Текущий архив: 2002.08.19;
Скачать: [xml.tar.bz2];

Вниз

Количество переданных пакетов/байт через соединение   Найти похожие ветки 

 
John Kayfolom   (2002-06-04 18:48) [0]

Сабж. А именно нужно программно получить те циферки, что можно увидеть в окне состояния соединения в win2000?

Заранее благодарю.


 
Song   (2002-06-04 18:59) [1]

SetIPStatistics()


 
John Kayfolom   (2002-06-04 20:26) [2]

Что то я не нашел такую... А можно с примером?


 
Song   (2002-06-04 21:31) [3]

>> А можно с примером?
Нельзя.

В Дельфи её само собой нет. В MSDN"е ищите.


 
МИФИст   (2002-06-04 22:55) [4]

>Song
Может GetIPStatistic?

>John K...
GetIpStatistics
The GetIpStatistics function retrieves the IP statistics for the current computer.

DWORD GetIpStatistics (
PMIB_IPSTATS pStats // pointer to IP stats );

Parameters

pStats
Pointer to a MIB_IPSTATS structure that, on successful return, contains the IP statistics for the local computer.
Return Values
If the function succeeds, the return value is NO_ERROR.

Members
dwForwarding
Specifies whether IP forwarding is enabled or disabled.
dwDefaultTTL
Specifies the default initial time to live (TTL) for datagrams originating on a particular computer.
dwInReceives
Specifies the number of datagrams received.
dwInHdrErrors
Specifies the number of datagrams received that have header errors.
dwInAddrErrors
Specifies the number of datagrams received that have address errors.
dwForwDatagrams
Specifies the number of datagrams forwarded.
dwInUnknownProtos
Specifies the number of datagrams received that have an unknown protocol.
dwInDiscards
Specifies the number of received datagrams discarded.
dwInDelivers
Specifies the number of received datagrams delivered.
dwOutRequests
Specifies the number of outgoing datagrams that IP is requested to transmit. This number does not include forwarded datagrams.
dwRoutingDiscards
Specifies the number of outgoing datagrams discarded.
dwOutDiscards
Specifies the number of transmitted datagrams discarded.
dwOutNoRoutes
Specifies the number of datagrams for which this computer did not have a route to the destination IP address. These datagrams were discarded.
dwReasmTimeout
Specifies the amount of time allowed for all pieces of a fragmented datagram to arrive. If all pieces do not arrive within this time, the datagram is discarded.
dwReasmReqds
Specifies the number of datagrams requiring reassembly.
dwReasmOks
Specifies the number of datagrams successfully reassembled.
dwReasmFails
Specifies the number of datagrams that cannot be reassembled.
dwFragOks
Specifies the number of datagrams that were fragmented successfully.
dwFragFails
Specifies the number of datagrams that cannot be fragmented because the "don"t fragment" bit in the IP header is set. These datagrams are discarded.
dwFragCreates
Specifies the number of fragments created.
dwNumIf
Specifies the number of interfaces.
dwNumAddr
Specifies the number of IP addresses associated with this computer.
dwNumRoutes
Specifies the number of routes in the IP routing table.

А вообще нужно иметь свой MSDN!!! =)

If the function fails, use FormatMessage to obtain the message string for the returned error.

MIB_IPSTATS
The MIB_IPSTATS structure stores information about the IP protocol running on a particular computer.

typedef struct _MIB_IPSTATS {
DWORD dwForwarding; // IP forwarding enabled or disabled
DWORD dwDefaultTTL; // default time-to-live
DWORD dwInReceives; // datagrams received
DWORD dwInHdrErrors; // received header errors
DWORD dwInAddrErrors; // received address errors
DWORD dwForwDatagrams; // datagrams forwarded
DWORD dwInUnknownProtos; // datagrams with unknown protocol
DWORD dwInDiscards; // received datagrams discarded
DWORD dwInDelivers; // received datagrams delivered
DWORD dwOutRequests; //
DWORD dwRoutingDiscards; //
DWORD dwOutDiscards; // sent datagrams discarded
DWORD dwOutNoRoutes; // datagrams for which no route
DWORD dwReasmTimeout; // datagrams for which all frags didn"t arrive
DWORD dwReasmReqds; // datagrams requiring reassembly
DWORD dwReasmOks; // successful reassemblies
DWORD dwReasmFails; // failed reassemblies
DWORD dwFragOks; // successful fragmentations
DWORD dwFragFails; // failed fragmentations
DWORD dwFragCreates; // datagrams fragmented
DWORD dwNumIf; // number of interfaces on computer
DWORD dwNumAddr; // number of IP address on computer
DWORD dwNumRoutes; // number of routes in routing table
} MIB_IPSTATS, *PMIB_IPSTATS;






Страницы: 1 вся ветка

Форум: "Сети";
Текущий архив: 2002.08.19;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.47 MB
Время: 0.006 c
1-60554
Вечно молодой
2002-08-07 12:07
2002.08.19
Need component


1-60551
anod
2002-08-05 16:36
2002.08.19
Удалить меню


14-60840
AL2002™±2‰
2002-07-25 01:01
2002.08.19
Уснули все.


1-60688
MikeFW
2002-08-06 12:47
2002.08.19
Почему у меня исчезает


1-60621
lovres
2002-08-08 13:51
2002.08.19
Как вместо окна системного сообщ. вывести своё





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский