How to create connection with tcp server
<p>I need to create a TCP Connection with a server running on device , I need to send the binary data after connection in following format.</p>

<pre><code>     Field          Byte        Value
   1: packet id      1           0X01
   2: length         1            2
   3:Buadrate        4       The bit rate in bps used by the can
                             BUS. Maximum value is 1000000.

  4:extended         1       If this is set to one the device will use
                             the extended frame format
</code></pre>

<p>Please help that how can create tcp connection with server running on 2000 port 
Please help</p>
