[Gambas-devel] socket

Berg Frank bergfr at ...305...
Sat May 14 18:25:47 CEST 2005


hi daniel,
sorry, but i must ask again, i can`t found the lib*.so where all the net
command`s is in.
(socket, htons, recvfrom)
socket and recvfrom i was found in /usr/include/sys/socket.h
and htons in  /usr/include/netinet/in.h

but where is the *.so ???

frank



----- Original Message ----- 
From: "Daniel Campos" <daniel.campos at ...103...>
To: <gambas-devel at lists.sourceforge.net>
Sent: Saturday, May 14, 2005 10:59 AM
Subject: Re: [Gambas-devel] socket


Hi Frank:


Ah! this is not was you told me in the previous message :-))). You're
not trying
to work with datagrams, but with raw network data, that is, you're trying
to write a kind of "sniffer" in Gambas, reading low level data and
determining
what of these frames are ax25 frames. You can not use the gb.net component
for that, you should use "api calls" instead. You should define all the
extern
functions and constants you need (socket, etc...), and probably you'll
need to
work with the program as root too, as these kind of operations are not
allowed
by the Linux kernel for normal users...

Regards,

D. Campos






More information about the Devel mailing list