lua-sockets: reworked api return values.