Added LOG_SET_CMD() macro.
Corrected tabs for spaces.
Set sockets in non-blocking mode.
Minor changes to command output.
Corrected tabs for spaces.
Corrected code wrap.