Brocade Virtual ADX OpenScript API Guide (Supporting ADX v Manual do Utilizador Página 30

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 132
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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);
}
}
Vista de página 29
1 2 ... 25 26 27 28 29 30 31 32 33 34 35 ... 131 132

Comentários a estes Manuais

Sem comentários