Subject: | $error_code in transmit_msg |
In case of "strange" errors in transmit_msg() (like a timeouted
connection) the returned $error_code value will be 0. This is the same
error code like in successful operation, so it's difficult to
distinguish success and error (maybe it's possible to distinguish using
the other returned values $ack and $error_text).
In fact, in Net::UCP::Client::login() you're using the condition
return 0 if ($e_num)
to get a unsuccessful login(), but this would not catch timeouted
connections.
Regards,
Slaven