Home Links
Home Page
How to us to correct the person who has entered
Yandex - like search by the hands
Stemmer.
Creation of sites - model of qualitative imposition
Entrance parameter of function is the file from six elements
Promotion of a site in Rambler
The good design should make a profit
Validnost` HTML
Perenapravlenie mistakes in a browser - 100 % as in PHP
Terrible animal the traffic
Cajt with help HTML:: Mason
Choice of the module
Bases of
Creation of a site
Adjustment of a site
TT - the counter of the traffic
GetCurrBytes
OnOverflow
Small improvements of our counter
 

GetCurrBytes

Method GetCurrBytes allows to receive value of the counter of byte of the concrete filter. As arguments accepts the index of the filter received in results of a call of method AddFilter. In a scalar context the method returns a line of performance of the counter of byte, and in list - a file from two elements: quantities{amounts} of the sent and received bytes.



$str = $ctt-> GetCurrBytes ($fi); ($sent, $recv) = $ctt-> GetCurrBytes ($fi);


GetCurrPackets

Method GetCurrBytes allows to receive value of the counter of packages of the concrete filter. As arguments accepts an index of the filter. In a scalar context the method returns a line of performance of the counter of packages, and in list - a file from two elements: quantities{amounts} of the sent and received packages.

ResetCounter

This method allows to dump{reset} values of counters of the certain filter. As argument the method accepts an index of the filter.

GetFilters

Method GetFilters allows to receive the list of indexes of all set filters of the given object. If any filter is not set, the empty list comes back.



while ($ctt-> Read () ** @fi = $ctt-> GetFilters ()) {...}


IsUsed

The method allows to check up, whether the filter with the specified index is determined. As argument accepts an index of the filter. Returns 0, if the filter neopredelen or 1 if such filter is.



if ($ctt-> IsUsed (0)) {...}