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

Re: ICMP socket with Gambas


On 6/28/25 1:10 PM, Claus Dietrich wrote:
Am 28.06.25 um 16:26 schrieb vuott@xxxxxxxxxxxx:
Uhmmm... sorry, correct structure is:

Public Struct SockAddr
  SinFamily As SHORT
  SinPort As SHORT
  SinAddr As Pointer
End Struct

(with SHORT, not Integer)

This program provides following console output on my Mint 22 platform:

"Socket call error: 13"

Best regards

Claus

I admit the error reporting in the program could stand to be more informative.

An error code of 13 means "Permission denied". As I understand it, that shouldn't happen when creating a socket of type "SOCK_DGRAM".


--
Lee

--- Gambas User List Netiquette [https://gambaswiki.org/wiki/doc/netiquette] ----
--- Gambas User List Archive [https://lists.gambas-basic.org/archive/user] ----


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 GambasClaus Dietrich <claus.dietrich@xxxxxxxxxx>