[fpc-pascal] RE: Get Local IP using glib (eth0,eth1)
Micha Nelissen
micha at neli.hopto.org
Fri Oct 6 08:04:02 CEST 2006
Jeff Pohlmeyer wrote:
>> > function to read the local IP eth0/eth1 using glibc library.
>
> This one is a little cleaner...
>
> program ip_addr;
> {$MODE OBJFPC}
>
> uses libc;
It doesn't seem like you're using libc specific functions ? You can also
write a fpc 'native' one using fpsocket and fpioctl in baseunix/unix, I
think.
Micha
More information about the fpc-pascal
mailing list