Brocade Virtual ADX OpenScript API Guide (Supporting ADX v Uživatelský manuál Strana 30

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 132
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 29
18 Brocade Virtual ADX OpenScript API Guide
53-1003243-01
Methods
3
Return Values
The following table contains the return values.
Example
OS_TCP::dst
Description
Returns the destination port number of the current packet.
Context
Called in context of TCP and HTTP.
Usage
Can be used to perform load-balancing based on destination port number.
Input Parameters
None.
Return Values
The following table contains the return values.
TABLE 11 Return Values
Name Type Description
Source port number.
TABLE 12 Return Values
Name Type Description
Destination port number.
use OS_TCP;
use OS_SLB;
use OS_HTTP_REQUEST;
sub HTTP_REQUEST{
$port = OS_TCP::src;
if($port == 1000){
OS_SLB::reset_client;
} else {
OS_SLB::forward(4);
}
}
Zobrazit stránku 29
1 2 ... 25 26 27 28 29 30 31 32 33 34 35 ... 131 132

Komentáře k této Příručce

Žádné komentáře