Table of Contents

Name

thrulay_err_msg - print an error message.

Synopsis

#include <thrulay.h>

void thrulay_err_msg(int code);

Description

thrulay_err_msg prints an error message that code represents. It is typically called when you get an error code for previous thrulay calls. Possible thrulay error codes are:

#define THRULAY_E_NONE 0
#define THRULAY_E_REGISTRY_FULL -1
#define THRULAY_E_INVALID_OPTION -2
#define THRULAY_E_INVALID_ARGS -3
#define THRULAY_E_MEMORY_ALLOC -4
#define THRULAY_E_LARGE_TIMESTAMP -5
#define THRULAY_E_SERVER_RSP -6
#define THRULAY_E_SERVER_SBLOCK -7
#define THRULAY_E_SERVER_LBLOCK -8
#define THRULAY_E_INVALID_TID -9
#define THRULAY_E_SYSTEM_SELECT -10
#define THRULAY_E_SYSTEM_WAITPID -11
#define THRULAY_E_SYSTEM_READ -12
#define THRULAY_E_SYSTEM_WRITE -13
#define THRULAY_E_SYSTEM_PIPE -14
#define THRULAY_E_SYSTEM_FORK -15
#define THRULAY_E_TEST_NOT_STARTED -16
#define THRULAY_E_TEST_HAS_EXITED -17
#define THRULAY_E_LIB_NOT_INIT -18
#define THRULAY_E_UNRECOGNIZED_CMD -19
#define THRULAY_E_INVALID_TRAFFIC_TYPE -20
#define THRULAY_E_INVALID_RIDX -21
#define THRULAY_E_CONNECTION -22
#define THRULAY_E_HEADER_SIZE -23
#define THRULAY_E_GETTIMEOFDAY -24
#define THRULAY_E_FASTTIME_INIT -25
#define THRULAY_E_UNKNOWN -26

Return Values

None

Bugs

Please send bug reports to <huadongliu@gmail.com>.

Author

Huadong Liu <huadongliu@gmail.com>

Homepage

http://thrulay-hd.sourceforge.net/

See Also

thrulay_get_setup(3)


Table of Contents