|
@@ -213,7 +213,7 @@ Errors are those of the regular \seef{Bind} command.
|
|
|
\end{functionl}
|
|
|
\begin{function}{Connect}
|
|
|
\Declaration
|
|
|
-Function Connect (Sock:Longint;Var Addr;Addrlen:Longint) : Boolean;
|
|
|
+Function Connect (Sock:Longint;Var Addr;Addrlen:Longint) : Longint;
|
|
|
|
|
|
\Description
|
|
|
\var{Connect} opens a connection to a peer, whose address is described by
|
|
@@ -221,6 +221,8 @@ var{Addr}. \var{AddrLen} contains the length of the address.
|
|
|
The type of \var{Addr} depends on the kind of connection you're trying to
|
|
|
make, but is generally one of \var{TSockAddr} or \var{TUnixSockAddr}.
|
|
|
|
|
|
+The \var{Connect} functions returns a file descriptor if the call
|
|
|
+was successfull, a negative value in case of error.
|
|
|
\Errors
|
|
|
Errors are reported in \var{SocketError}.
|
|
|
\SeeAlso
|
|
@@ -234,9 +236,8 @@ Function Connect (Sock:longint;const addr:string;var SockIn,SockOut:text) : Bool
|
|
|
|
|
|
\Description
|
|
|
This is an alternate form of the \seef{Connect} command.
|
|
|
-It is equivalent
|
|
|
-to subsequently calling the regular \seef{Connect} function and the
|
|
|
-\seep{Sock2Text} function.
|
|
|
+It is equivalent to subsequently calling the regular \seef{Connect}
|
|
|
+function and the \seep{Sock2Text} function.
|
|
|
The function returns \var{True} if successfull, \var{False} otherwise.
|
|
|
|
|
|
\Errors
|