datltq wrote:We call a method called 'connect' of the instance 'client'.
client.connect(host, httpPort) will return a value, if it is ZERO - indicate that it is failed by the one who programmed it, code in the block will run.
Bad code practice though, IMO
Just curious; why is the above a bad practice? It's common in alot of languages for a function to return true on success, false on failure.