Brocade Virtual ADX OpenScript API Guide (Supporting ADX v Instrukcja Użytkownika Strona 30

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 132
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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);
}
}
Przeglądanie stron 29
1 2 ... 25 26 27 28 29 30 31 32 33 34 35 ... 131 132

Komentarze do niniejszej Instrukcji

Brak uwag