Linux-Hams archive - April 1997: Re: Need help with socket programming

Re: Need help with socket programming


Thu, 10 Apr 1997 07:07:10 +1000 (EST)


mhs.mhlknear@royalbank.com typed:
> Hi,
>
> We (OZ2ABA and I) are presently working on a version of PB/PG
> for Linux (based on the work of John Melton (G0ORX/N6LYT), but
What is PB/PG?

> What I want to do eventually is to see the frames being sent
> over the interface exactly as received from the satellite.
Yep, this is possible, you can get the whole information about what is
happening on an interface form a socket.

> So far I have been unable to locate any literature on the
> special sockets types in Linux. I have found some literature,
> on general socket programming, e.g. Digital's "Network Programming
> Guidelines" for Digital UNIX, but this manual only describes sockets
> types SOCK_STREAM and SOCK_DGRAM. SOCK_RAW is mentioned but not
> treated in any depth.
Yes, you need a SOCK_RAW.

> Where can I find documentation on the socket types that are
> special (?) to Linux such as SOCK_PACKET, etc. Also, I'm looking
> for information on what the address family AF_AX25 has of features.
Hard to find documentation. I wrote axdigi which was a proof on concept
that I could receive and send whole packets of data directly to/from an
interface. I would suggest you look at this program source, listens and
perhaps beacons. I don't think there is any documentation.

Suffice to say, you use sendto() and recvfrom(). The "address" is the name
of the interface.

> I do hope this is the right place to ask this kind of questions.
I'd say so.

- Craig

-- 
  // /\   |  | |  Craig Small VK2XLZ     @home: ltrgdwe.mjhgenrsfs@roskapostia.tunk.net
 ||==||===|==|=|  [44.136.13.17]         @play: ztvkj.ypojc@centrica.co.uk
  \\ \/   |  | |  finger jhrzzm.vkspar@ip-finland.com for PGP key!