Brocade Virtual ADX OpenScript API Guide (Supporting ADX v Manuel d'utilisateur Page 32

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 132
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 31
20 Brocade Virtual ADX OpenScript API Guide
53-1003243-01
Methods
3
OS_TCP::win
Description
Returns the window size (in bytes) of the current TCP packet. Returns undefined if called in invalid
context.
Context
Called in context of TCP and HTTP.
Usage
Can be used to perform load-balancing based on the window size.
Input Parameters
None.
Return Values
The following table contains the return values.
Example
OS_TCP::seq
Description
Returns the sequence number if called in valid context otherwise it returns undefined.
TABLE 13 Return Values
Name Type Description
Window size of current TCP packet else returns undefined
if called in invalid context.
use OS_TCP;
use OS_SLB;
use OS_HTTP_REQUEST;
sub HTTP_REQUEST {
my $win = OS_TCP::win;
if($win eq 0)
{
OS_SLB::log("window size is zero\n");
}
}
Vue de la page 31
1 2 ... 27 28 29 30 31 32 33 34 35 36 37 ... 131 132

Commentaires sur ces manuels

Pas de commentaire