added linux TCP connection funtion