20 return "TTY: success";
22 return "TTY: tcgetattr returned error";
24 return "TTY: cfsetispeed returned error";
26 return "TTY: cfsetospeed returned error";
28 return "TTY: tcsetattr returned error";
30 return "TTY: the write poll timed out";
32 return "TTY: an error was returned by the write poll";
34 return "TTY: an error occurred writing to the file";
36 return "TTY: a timeout occurred during the write";
38 return "TTY: the read poll timed out";
40 return "TTY: an error was returned by the read poll";
42 return "TTY: an error occurred reading from the file";
44 return "TTY: a timeout occurred during the read";
46 return "TTY: no device names found in sys";
48 return "TTY: initializing libudev failed";
50 return "TTY: no matching device found";
52 return "TTY: bad baud rate specified";
55 return "TTY: getaddr failed";
57 return "TTY: socket creation failed";
59 return "TTY: socket bind failed";
61 return "TTY: socket connect failed";
63 return "TTY: failed to init telnet_t structure";
65 return "TTY: error set in telnet event handler";
67 return "TTY: login timed out";
69 return "TTY: unknown error code";
std::string ttyErrorString(int ec)
Get a text explanation of a TTY_E_ error code.
Error numbers for the tty utilities.
#define TTY_E_UDEVNEWFAILED
#define TTY_E_TIMEOUTONREAD
#define TTY_E_TIMEOUTONREADPOLL
#define TTY_E_ERRORONWRITE
#define TTY_E_ERRORONWRITEPOLL
#define TTY_E_ERRORONREADPOLL
#define TTY_E_ERRORONREAD
#define TTY_E_BADBAUDRATE
#define TELNET_E_TELNETINIT
#define TTY_E_DEVNOTFOUND
#define TTY_E_TIMEOUTONWRITEPOLL
#define TELNET_E_LOGINTIMEOUT
#define TTY_E_TIMEOUTONWRITE