virtual class network
virtual Provides a logging function to store network transactions in the Wireshark hex format.
| network | virtual Provides a logging function to store network transactions in the Wireshark hex format. |
| Properties | |
| fds | The dynamic array of file descriptors. |
| Functions | |
| dump | static Stores a network transaction to the file specified by the idx using the Wireshark hex format. |
static function void dump( string desc, int idx = 0 )
static Stores a network transaction to the file specified by the idx using the Wireshark hex format. It is user’s responsibility to open the file before calling this function.
| desc | The description of a transaction. |
| idx | optional The index of the file descriptor array. The default index is 0. |
network::fds = new[2]; network::fds[0] = $fopen( "file0.hex", "w" ); network::fds[1] = $fopen( "file1.hex", "w" ); network::dump( "000000 01 02 03 04" ); // dump to fds[0] (file0.hex) #100; network::dump( "000000 11 12 13 14", .idx( 1 ) ); // dump to fds[1] (file1.hex) /* file0.hex */ // 0. // 000000 01 02 03 04 /* file1.hex */ // 100. // 000000 11 12 13 14
virtual Provides a logging function to store network transactions in the Wireshark hex format.
virtual class network
The dynamic array of file descriptors.
static integer fds[]
static Stores a network transaction to the file specified by the idx using the Wireshark hex format.
static function void dump( string desc, int idx = 0 )