Sign in Join

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

Mailing lists / lazarus / 2009-10

gethostbyname() on linux systems.

4 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

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

David Touzeau

Dear coders

i have googleized but nothing.

i try to find examples or any information in order to get the same gethostbyname() function on FPC compiled on Linux systems.

Best regards

Reply by email

ik
to David Touzeau

Please take a look at: ./fpc/packages/fcl-net/src/cnetdb.pp it's there :)

Ido
http://ik.homelinux.org/

David Touzeau wrote 16 lines
Dear coders i have googleized but nothing. i try to find examples or any information in order to get the same gethostbyname() function on FPC compiled on Linux systems. Best regards -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20091019/698723a5/attachment.html>

Reply by email

Brad Campbell
to ik: Please take a look at: ./fpc/packages/fcl-net/src/cnetdb.pp it's there :) Ido…
ik wrote 16 lines
Please take a look at: ./fpc/packages/fcl-net/src/cnetdb.pp it's there :) Ido http://ik.homelinux.org/ On Mon, Oct 19, 2009 at 7:51 PM, David Touzeau wrote: Dear coders i have googleized but nothing. i try to find examples or any information in order to get the same gethostbyname() function on FPC compiled on Linux systems. Best regards

Not teaching you how to suck eggs, but I run up against this issue of finding fpc examples quite often. The best solution I have found is to keep a copy of the fpc source tree on my hard disk and grep for the function I want to use. More often than not someone has already used it somewhere in that pile of code.

brad at bklaptop2:/tracks/devel/fpc/fpc-src$ grep -ir gethostbyname *

<snip lots of output>

packages/libndsfpc/examples/dswifi/main9.pp:  // Find the IP address of the server, with gethostbyname
packages/libndsfpc/examples/dswifi/main9.pp:  myhost := gethostbyname('www.akkit.org');

Brad

Dolphins are so intelligent that within a few weeks they can train Americans to stand at the edge of the pool and throw them fish.

Reply by email