Brocade Virtual ADX OpenScript API Guide (Supporting ADX v Manuale Utente Pagina 48

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 132
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 47
36 Brocade Virtual ADX OpenScript API Guide
53-1003243-01
Methods
4
Example
OS_UDP::raw
Description
Returns the data within a UDP packet including the UDP header.
Context
Called in context of UDP.
Usage
Used in performing load-balancing based on the whole UDP packet.
Input Parameters
None.
Return Values
The following table contains the return values.
Example
TABLE 28 Return Values
Name Type Description
string Raw data within the UDP packet.
use OS_UDP;
sub UDP_CLIENT_DATA{
$data = OS_UDP::payload;
$data_hex = unpack("H*", "$data");
$data ~= s/xyz/abc/g;
OS_UDP::payload($data);
}
use OS_UDP;
sub UDP_CLIENT_DATA{
$raw_data = OS_UDP::raw;
$data_hex = unpack("H*", "$data");
if (defined $raw_data)
{
# process raw data
}
}
Vedere la pagina 47
1 2 ... 43 44 45 46 47 48 49 50 51 52 53 ... 131 132

Commenti su questo manuale

Nessun commento