Brocade Virtual ADX OpenScript API Guide (Supporting ADX v Manual de usuario Pagina 36

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 132
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 35
24 Brocade Virtual ADX OpenScript API Guide
53-1003243-01
Methods
3
Example
OS_TCP::getPayloadLength
Description
Returns payload length of current packet. Payload contains encapsulated layers (layer 4).
Context
Called in context of TCP and HTTP.
Usage
Can be used to perform load-balancing based on payload length.
Input Parameters
None.
Return Values
The following table contains the return values.
TABLE 18 Return Values
Name Type Description
bytes Payload length.
use OS_TCP;
use OS_SLB;
use OS_HTTP_REQUEST;
sub HTTP_REQUEST {
my $hdrlen = OS_TCP::getHeaderLength;
if($hdrlen > 20)
{
OS_SLB::reset_client;
}
}
Vista de pagina 35
1 2 ... 31 32 33 34 35 36 37 38 39 40 41 ... 131 132

Comentarios a estos manuales

Sin comentarios