Brocade Virtual ADX OpenScript API Guide (Supporting ADX v Manuel d'utilisateur Page 47

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 132
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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";
}
Vue de la page 46
1 2 ... 42 43 44 45 46 47 48 49 50 51 52 ... 131 132

Commentaires sur ces manuels

Pas de commentaire