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

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 132
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 46
Brocade Virtual ADX OpenScript API Guide 35
53-1003243-01
Methods
4
Return Values
The following table contains the return values.
Example
OS_UDP::payload ($data)
Replaces the existing UDP payload in a packet with the value supplied.
Context
Can be called in UDP context only.
Usage
Can be used to modify the UDP payload.
Input Parameters
The following table contains the input values.
Return Values
None
TABLE 26 Return Values
Name Type Description
string String representing the UDP
payload
TABLE 27 Input Values
Name Type Description
$data string
A string representing the
contents of the payload.
use OS_UDP;
sub UDP_CLIENT_DATA{
$data = OS_UDP::payload;
$data_hex = unpack("H*", "$data");
print "Hex format of UDP payload is - $data_hex\n";
}
Przeglądanie stron 46
1 2 ... 42 43 44 45 46 47 48 49 50 51 52 ... 131 132

Komentarze do niniejszej Instrukcji

Brak uwag