-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 07, 2000 11:53 PM
To: [EMAIL PROTECTED]
Subject: Re: [rtl] rtl and sockets
On Mon, Feb 07, 2000 at 02:37:13PM -0800, John Adams wrote:
> Hi again RTL Land
>
> Another task I'll need to do within my thread is read information coming
> in through an ethernet card with tcp-ip protocol. Can anyone tell me
> where to get information on socket programming with linux. I am not a
> networking expert. I already have one card running at eth0 using DHCP.
> >From what I understand, I'll have to connect to whatever port it is
> (would this be /dev/eth0 for instance ?), open the port, read
> information, close it, and so on. Does the rtl kernel allow this ?
Do it from userland and fifo it to RTL. That's my advice. And if
you do this, you might as well use Perl or Python to connect since
it's very simple and convenient.
That's my opinion too. I do this without any problems in a project for a
machine control. Using three fifo's (one for the commands to the rt-module,
one for commands from the rt-module to user-land and the final one for
logging purpose from rt-module into user-land). A small perl-script is
capable of acting like a communication bridge between the fifo's and e.g.
the gui-sockets (also written in perl).
It select's on the fifo's and sockets, restart's them if neccessary and so
on. Everything is working fine and you can attatch other parts via sockets
very easy, monitor and log the traffic, handle accesss requests and so on
without disturbing or modifying your critical rt-module.
As soon as I refine my project I'll be able to extract the main part as an
example, if anybody is interested in.
> Thanks
> John Adams
>
> --- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
> ----
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/~rtlinux/
--
---------------------------------------------------------
Victor Yodaiken
FSMLabs: www.fsmlabs.com www.rtlinux.com
FSMLabs is a servicemark and a service of
VJY Associates L.L.C, New Mexico.
--- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
----
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
--- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
----
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/