Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.networking > #1215

Re (2+++): ETHO interfacing linux IP:stack?

From no.top.post@gmail.com
Newsgroups comp.os.linux.networking, comp.lang.oberon
Subject Re (2+++): ETHO interfacing linux IP:stack?
Date 2012-03-25 14:26 +0000
Organization A noiseless patient Spider
Message-ID <jkn9uh$6ss$1@dont-email.me> (permalink)
References <jkn2c2$u3a$1@dont-email.me>

Cross-posted to 2 groups.

Show all headers | View raw


In article <jkn2c2$u3a$1@dont-email.me>, Tauno Voipio <tauno.voipio@notused.fi.invalid> wrote: 

> On 24.3.12 7:22 , no.top.post@gmail.com wrote:
> >
> > Here's a paste of the interfacing code of 'a related/family'
> > which was also modified to 'ride on linux':-
> > <><><><>
> > cmdStr := "(/usr/lib/sendmail -oi -t<  /tmp/Mailer.Send; rm /tmp/Mailer.Send)&";
> > Unix.System (SYSTEM.ADR(cmdStr), LEN(cmdStr));
> > (* Unix.System("/usr/lib/sendmail -oi -t<  /tmp/Mailer.Send"); *)
> > (* Files.Delete("/tmp/Mailer.Send", res) *)
> > <><><><>
> 
> Here, you're getting out of Oberon and running a
> subordinate process instead of interfacing to the
> mail system.
> 
> This is the same as a shell commands:
> 
> /usr/lib/sendmail -oi -t </tmp/Mailer.Send
> rm /tmp/Mailer.Send
> 
Yes I just put that in there, for you to feel familiar and comfortable.
It's rather trivial to write/modify the complete pop/smtp in ETHO.
Here's some more code snippets, which I had to look at to add TxAuthenticate:
From the RFC where you have to give: UserID
	Connect(S, host, POP, res);
		IF res = 0 THEN NS.ReadString(S, s);
			IF s[0] = "+" THEN SendCmd(S, "user", user); 
------------> which goes to:
-> SendCmd(S: NS.Connection; cmd, arg: ARRAY OF CHAR);
->  NS.WriteBytes(S, 0, i+2, buf)
WriteBytes (C: Connection; pos, len: LONGINT; VAR buf: NetBase.Data);
->	TYPE
		IPAdr = NetBase.IPAdr;
		Connection = POINTER TO ConnectionDesc;  <-- C: Connection
		ConnectionDesc = RECORD
			res: INTEGER;
		END;
		
	TYPE
		IPAdr = ARRAY 4 OF CHAR;    <-- NetBase.IPAdr;
		Data = ARRAY OF SYSTEM.BYTE;
		Sockaddrin = RECORD
			sinfamily: INTEGER;
			sinport: INTEGER;
->			sinaddr: IPAdr;
			sinzero: ARRAY 8 OF CHAR
		END;
============================
Now lets get back to the real problem:
I'll consider the 'Mailer' because I'm most familiar with it
compared to News & http-fetch.

LNO is running on linux. `pstree` shows that it's a descendant of `bash`

A=>LNO: Mailer < ........<ser-port < modem

B=> Linux < pppd chat script<...<tttyUSB0/1 <wireless-modem

The final target hardware is a netbook, which has NO ser-port,
but I can test on a PC which has USB and ser-port.

I connect to the-net via the linux-chat-script;
and then I tried to 'talk via LNO' by having /dev/tty1 linked to
/dev/ttyUSB0. It fails and LNO hasn't got `ping`to help test.

Firstly I linked BOTH /dev/modem for Linux and
 /dev/tty1 for LNO  /dev/ttyUSBO, but that
 seems strange.
 
 This is really a problem for kernel-programmers?
 

Back to comp.os.linux.networking | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

ETHO interfacing linux IP:stack? no.top.post@gmail.com - 2012-03-22 19:28 +0000
  Re: ETHO interfacing linux IP:stack? Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2012-03-22 21:39 +0200
    Re: ETHO interfacing linux IP:stack? J G Miller <miller@yoyo.ORG> - 2012-03-22 20:07 +0000
      Re: ETHO interfacing linux IP:stack? Lew Pitcher <lpitcher@teksavvy.com> - 2012-03-22 16:27 -0400
        Re: ETHO interfacing linux IP:stack? Lew Pitcher <lpitcher@teksavvy.com> - 2012-03-22 16:44 -0400
        Re: ETHO interfacing linux IP:stack? Allodoxaphobia <knock_yourself_out@example.net> - 2012-03-23 02:43 +0000
      Re: ETHO interfacing linux IP:stack? Roger Blake <rogblake@iname.invalid> - 2012-03-22 21:12 +0000
    Re: ETHO interfacing linux IP:stack? "Chris Burrows" <cfbsoftware@hotmail.com> - 2012-03-23 19:10 +1030
    Re (2): ETHO interfacing linux IP:stack? no.top.post@gmail.com - 2012-03-23 23:21 +0000
    Re (2+): ETHO interfacing linux IP:stack? no.top.post@gmail.com - 2012-03-24 05:58 +0000
      Re: Re (2+): ETHO interfacing linux IP:stack? Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2012-03-24 12:12 +0200
        Re (3) ETHO interfacing linux IP:stack? no.top.post@gmail.com - 2012-03-24 18:24 +0000
    Re (2+++): ETHO interfacing linux IP:stack? no.top.post@gmail.com - 2012-03-24 17:22 +0000
      Re: Re (2+++): ETHO interfacing linux IP:stack? Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2012-03-25 15:17 +0300
        Re: Re (2+++): ETHO interfacing linux IP:stack? Jorgen Grahn <grahn+nntp@snipabacken.se> - 2012-03-25 12:31 +0000
        Re (2+++): ETHO interfacing linux IP:stack? no.top.post@gmail.com - 2012-03-25 14:26 +0000

csiph-web