Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2015-12

unit for PHostEnt definition

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

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).

leledumbo
to Andreas Klausmann
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 .