[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ICMP socket with Gambas - working


Le 30/06/2025 à 10:22, Benoît Minisini a écrit :

It's because you used "Long" for SinAddr, whereas it must be "Integer". "Long" in Gambas is a 64-bit integer.

[...]

For information, to know exactly how a C structure is declared, for example the 'struct sockaddr_in' that represents an IPV4 address, you have to do that:

$ echo "#include <netinet/in.h>" | gcc -E -

And you must find and analyze all that stuff to get how 'struct sockaddr_in' is declared.

Regards,

--
Benoît Minisini.


References:
Re: ICMP socket with GambasLee <t.lee.davidson@xxxxxxxxx>
Re: ICMP socket with GambasLinus <olivier.cruilles@xxxxxxxx>
Re: ICMP socket with GambasLee <t.lee.davidson@xxxxxxxxx>
Re: ICMP socket with Gambasvuott@xxxxxxxxxxxx
Re: ICMP socket with GambasLee <t.lee.davidson@xxxxxxxxx>
Re: ICMP socket with Gambasvuott@xxxxxxxxxxxx
Re: ICMP socket with Gambas - workingLee <t.lee.davidson@xxxxxxxxx>
Re: ICMP socket with Gambas - workingBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>