[fpc-pascal] why connect is "deprecated"

Jonas Maebe jonas.maebe at elis.ugent.be
Tue Apr 16 11:58:02 CEST 2013

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.


More information about the fpc-pascal mailing list