Re: [fpc-pascal] unit for PHostEnt definition

2015-12-17 Thread leledumbo
> after a whole night of unsuccessful googling I’m still wondering, which
unit(s) I have to use to find a type definition of PHostEnt in linux. I need
it for the gethostbyname function.
> 
> In Windows it’s defined in winsock and there should be an equivalent
> record in linux according to systems “man gethostbyname”

netdb, both the function and the type definition are there.



--
View this message in context: 
http://free-pascal-general.1045716.n5.nabble.com/unit-for-PHostEnt-definition-tp5723392p5723396.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] unit for PHostEnt definition

2015-12-16 Thread Andreas Klausmann
Hi,

after a whole night of unsuccessful googling I'm still wondering, which
unit(s) I have to use to find a type definition of PHostEnt in linux. I need
it for the gethostbyname function.

In Windows it's defined in winsock and there should be an equivalent record
in linux according to systems "man gethostbyname".

 

Thanks!

Andreas

 

Working on fpc 2.6.4 (from ubuntu repository) on ubuntu (raspberry 2).

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal