-
Notifications
You must be signed in to change notification settings - Fork 35
4. API Description (Common)
Chema García edited this page Jan 11, 2016
·
1 revision
Function to get the version of the library:
const char* ntoh_version ( void );
Function to initialize the library (TCP and IPv4):
void ntoh_init ( void );
Function to release all resource used by the library:
void ntoh_exit ( void );
Function to get the description of an error value:
const char* ntoh_get_errdesc ( unsigned int val );
- val: Error code
Note: Error codes are returned by the functions which have a pointer parameter to get the error value
Function to get a description of "reason" and "extra" fields from the parameters in the user-defined callback function:
const char* ntoh_get_reason ( unsigned int val );
- val: Reason/Extra code
Function to get the description of the value returned by "ntoh_ipv4_add_fragment" and "ntoh_tcp_add_segment" functions:
const char* ntoh_get_retval_desc ( int val );
- val: Code returned by the above mentioned functions