Added fix for CloseSock() method and also added tcpconnect timeout. Commented out no-op code to get the mac address in tools.cpp that was generating warnings