<div dir="ltr">Yes, I read the source code and found that fpconnect + socktotext = connect, but just don't know why combining them together is a bad idea :-) thanks<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">
2013/4/16 Victor Campillo <span dir="ltr"><<a href="mailto:victor.campillo@gmail.com" target="_blank">victor.campillo@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"><div><div class="h5">
<div>On 16/04/13 11:12, Xiangrong Fang
wrote:<br>
</div>
</div></div><blockquote type="cite"><div><div class="h5">
<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></fieldset>
<br>
</div></div><pre>_______________________________________________
fpc-pascal maillist - <a href="mailto:fpc-pascal@lists.freepascal.org" target="_blank">fpc-pascal@lists.freepascal.org</a>
<a href="http://lists.freepascal.org/mailman/listinfo/fpc-pascal" target="_blank">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.<span class="HOEnZb"><font color="#888888"><br>
<pre cols="72">--
Victor Campillo</pre>
</font></span></div>
<br>_______________________________________________<br>
fpc-pascal maillist - <a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a><br>
<a href="http://lists.freepascal.org/mailman/listinfo/fpc-pascal" target="_blank">http://lists.freepascal.org/mailman/listinfo/fpc-pascal</a><br></blockquote></div><br></div>