Socket API: added supprt for 'Connect' with timeout parameter