###Function###
TCPConnect

###Description###
Create a socket connected to an existing server.

###Syntax###
TCPConnect ( IPAddr, port )


###Parameters###
@@ParamTable@@
IPAddr
	Internet Protocol dotted address(IpV4) as "192.162.1.1".
port
	port on which the created socket will be connected.
@@End@@

###ReturnValue###
@@ReturnTable@@
Success:	the main socket identifier.
Failure:	-1 or 0 and sets the @error flag to non-zero.
@error:	1 IPAddr is incorrect.
	2 port  is incorrect.
	Windows API WSAGetError return value (see <a href="http://msdn.microsoft.com/en-us/library/ms740668.aspx">MSDN</a>).
@@End@@


###Remarks###
This function is used by a client to communicate with the server.


###Related###
TCPStartup, TCPListen, TCPTimeout (Option), TCPRecv, TCPSend


###Example###
@@IncludeExample@@
