Basic TCP connection wrapper