<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 16/04/13 11:12, Xiangrong Fang
wrote:<br>
</div>
<blockquote
cite="mid:CAP93jB0kj11swJVCx8Lw50pAeF51xuk=Bj_vWcCu2XxdO4Pr=Q@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>Hi All,<br>
<br>
I am trying to write a tcp client (redis) in free pascal,
and found this function marked as deprecated:<br>
<br>
Function Connect(Sock:longint;const addr:TInetSockAddr;var
SockIn,SockOut:text):Boolean; deprecated; <br>
<br>
</div>
My question is, why it is deprecated, or, what is the
replacement for this function? <br>
<br>
</div>
Thanks<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
fpc-pascal maillist - <a class="moz-txt-link-abbreviated" href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freepascal.org/mailman/listinfo/fpc-pascal">http://lists.freepascal.org/mailman/listinfo/fpc-pascal</a>
</pre>
</blockquote>
Hi,<br>
<br>
I think that Connect was replaced by fpconnect that is more cross
platform, so you should use fpconnect instead of Connect.<br>
The same happens with the other sockets functions like Accept, Bind,
etc. You should use fpaccept, fpbind, etc.<br>
<br>
See unit rtl/inc/socketsh.inc<br>
<br>
Best Regards.<br>
<pre class="moz-signature" cols="72">--
Victor Campillo</pre>
</body>
</html>