On 16 Apr 2013, at 11:53, Marco van de Voort wrote:
In our previous episode, Xiangrong Fang said:
I am trying to write a tcp client (redis) in free pascal, and found
this
function marked as deprecated:
Function Connect(Sock:longint;const addr:TInetSockAddr;var
SockIn,SockOut:text):Boolean; deprecated;
It was deprecated for two reasons:
1. the format, returntype and parameter typing is at 1.0.x level and
was
never updated to 2.0
2. errorhandling is limited to non existent.
As far as I can see, all errors are returned via inoutres/IOResult in
the same way as happens with disk-based IO.
Jonas
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal