can't connect to the server, TCP socket android
<p>I am trying to open up a TCP socket in my client application so that it can talk to my server.<br>
after going through the documentation, i am curious about the socket constructor, which takes two parameters.</p>

<pre><code>Socket(InetAddress dstAddress, int dstPort)
Creates a new streaming socket connected to the target host specified by the parameters dstAddress and dstPort.
</code></pre>

<p>and its description is as above. So as I learned, after creating the socket, I should have explicitly called the connect function in order for it to connect to the server. But in some TCP client sample codes I found online, none of them actually calls the connect function</p>

<pre><code>connect(SocketAddress remoteAddr, int timeout)
</code></pre>

<p>So I am thinking if the constructor automatically connects to the server after being created? the three-ways handshake is done. or I have to explicitly call the connect function after the constructor?  Thank you so much</p>
