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

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 132
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 23
12 Brocade Virtual ADX OpenScript API Guide
53-1003243-01
Methods
2
Example
OS_IP::getPayloadLength
Description
Returns payload length of current packet in bytes. Payload includes encapsulated layers (layer 4 +
layer 7).
Context
Called in context of TCP, UDP and HTTP.
Usage
Used in performing load-balancing based on the payload length.
Input Parameters
None.
Return Values
The following table contains the return values.
TABLE 8 Return Values
Name Type Description
byte Payload length in bytes.
use OS_IP;
use OS_SLB;
use OS_HTTP_REQUEST;
sub HTTP_REQUEST{
$header_length = OS_IP::getHeaderLength;
if($header_length < 20){
OS_SLB::reset_client;
}
}
Przeglądanie stron 23
1 2 ... 19 20 21 22 23 24 25 26 27 28 29 ... 131 132

Komentarze do niniejszej Instrukcji

Brak uwag