$FUNCNAME$
	TCPCONNECT()
$CATEGORY$
	TCP,FILE/IO
$SUMMARY$
	Connect with server.
$LANG_RU$
	   .
$SYNTAX$
	TCPCONNECT(<sHostName>[, <nPort>][, <nTimeout>])	--> <nConnection>
$ARGUMENTS$
	<sHostName>	String, is the server name.
	<nPort>		Numeric, is the port number.
	<nTimeout>	Numeric, is the timeout.( default 60000 )
$LANG_RU$
	<sHostName>	String,  .
	<nPort>		Numeric,  .
	<nTimeout>	Numeric,   .( default 60000 )
$RETURNS$
	Returns the connection number or -1.
$LANG_RU$
	    -1.
$DESCRIPTION$
	TCPCONNECT() makes connect to server <sHostName> and creates socket
	to port <nPort>. Returns connection number <nConnection> or -1 on error.
	<link linkend="functionFERROR">FERROR()</link> and <link linkend="functionFERRORSTR">FERRORSTR()</link>kept the error description.
$LANG_RU$
	TCPCONNECT()     <sHostName>   
	  <nPort>.   <nConnection>  -1   .
	<link linkend="functionFERROR">FERROR()</link>  <link linkend="functionFERRORSTR">FERRORSTR()</link>     .
$EXAMPLES$


con := TCPCONNECT("http://www.itk.ru")

if con > -1
	? "connection: ", con
	....
	TCPCLOSE(con)
else
	? FERROR()
endif


$PECULIARITIES$
$PLATFORMS$
$CONFORMS$
$SEEALSO$
$AUTHOR$
ITK
$LASTDATE$
$END$

