By the way, Contiki IRC doesn't seem to have the "msg" command implemented (necessary for identifying oneself to libera.chat's NickServ).
By the way, Contiki IRC doesn't seem to have the "msg" command implemented >> (necessary for identifying oneself to libera.chat's NickServ).
I glanced quickly at some information on the IRC protocol, and likewise took a quick look at the Contiki IRC source code. I think I have enough of an understanding to speculate that someone inexpert like myself could do this, and of how to approach the problem.
So, replying to myself:
By the way, Contiki IRC doesn't seem to have the "msg" command implemented >> (necessary for identifying oneself to libera.chat's NickServ).
I glanced quickly at some information on the IRC protocol, and likewise took a quick look at the Contiki IRC source code. I think I have enough of an understanding to speculate that someone inexpert like myself could do this, and of how to approach the problem.
The PRIVMSG command seems to be used both for private messages and for messages to channels. It is already implemented in Contiki in the latter context. I think "/msg" would need to send the same thing to the IRC server, just with the immediately following word (rather than a channel name) as the recipient.
I think a new "else if" section in the parse_line function under if(line[0] == '/'), to handle "msg" can take care of recognizing the command. I'll have to look a little closer at the data structures and existing functions: I don't know whether ircc_msg() can be used directly, or adapted to also handle this type of message, or if it would be better to add a new function, like ircc_privmsg()... Either way, the line entered by the user needs to be parsed a little extra to pull out the recipient before grabbing the rest as the message.
I hope I'm not way off base here.
-Jeremiah
jstoddard@sdf.org
SDF Public Access UNIX System - http://sdf.org
Date: Sun, 5 Feb 2023 12:21:51 -0500
From: Steve Nickolas <usotsuki@buric.co>
Newsgroups: comp.sys.apple2
Subject: Re: Contiki IRC
On Sat, 4 Feb 2023, Jeremiah Stoddard wrote:
So, replying to myself:
By the way, Contiki IRC doesn't seem to have the "msg" command implemented >>> (necessary for identifying oneself to libera.chat's NickServ).
I glanced quickly at some information on the IRC protocol, and likewise
took a quick look at the Contiki IRC source code. I think I have enough of >> an understanding to speculate that someone inexpert like myself could do
this, and of how to approach the problem.
I am quite familiar with the IRC protocol and have written a client for MS-DOS.
The PRIVMSG command seems to be used both for private messages and for
messages to channels. It is already implemented in Contiki in the latter
context. I think "/msg" would need to send the same thing to the IRC
server, just with the immediately following word (rather than a channel
name) as the recipient.
/msg NICK MESSAGE -> PRIVMSG NICK :MESSAGE
I think a new "else if" section in the parse_line function under if(line[0] >> == '/'), to handle "msg" can take care of recognizing the command. I'll
have to look a little closer at the data structures and existing functions: >> I don't know whether ircc_msg() can be used directly, or adapted to also
handle this type of message, or if it would be better to add a new
function, like ircc_privmsg()... Either way, the line entered by the user
needs to be parsed a little extra to pull out the recipient before grabbing >> the rest as the message.
I hope I'm not way off base here.
-Jeremiah
jstoddard@sdf.org
SDF Public Access UNIX System - http://sdf.org
I don't know if https://6.buric.co/airc.c.txt would be of any use but it's a pretty good and relatively simple implementation of the protocol (again, for MS-DOS, and using a different TCP stack).
-uso.
I'm kind of sort of
considering another project--this time from scratch--to see if it would be possible to put together an IRC client that works with those "Simple WiFi Modem" gadgets.
I dunno; I don't have any experience
programming a Super Serial Card, either.
Thanks for responding. It's good to know that there's an IRC expert of sorts here!
Date: Mon, 6 Feb 2023 07:37:34 -0000 (UTC)
From: Oliver Schmidt <ol.sc@web.de>
Newsgroups: comp.sys.apple2
Subject: Re: Contiki IRC
Hi Jeremiah,
I'm kind of sort of
considering another project--this time from scratch--to see if it would be >> possible to put together an IRC client that works with those "Simple WiFi
Modem" gadgets.
Great idea! I'm considering the very same thing for the Contiki web
browser.
I dunno; I don't have any experience
programming a Super Serial Card, either.
When you hacked the Contiki IRC client, then you already know cc65. It
comes with a driver for the Super Serial Card (that uses interrupts in contrast to the SSC firmware). For WiFi modems which support the hardware handshake on their serial port, that driver makes SSC programming super simple. See https://github.com/cc65/cc65/blob/master/samples/terminal.c
Together with the cc65 CONIO interface for direct/fast screen access in 80 col. mode (as it is i.e. used by the Contiki IRC client), you're pretty
well equipped.
Both interfaces (serial & screen) are btw. also available for the C64 and
the ATARIs. You could pretty easily support all three machines with
(almost) the same source code (just like the Contiki IRC client).
Regards,
Oliver
Oooh, thanks a million for pointing me to your MS-DOS implementation.
I may be letting my tiny success go to my head, but I'm kind of sort
of considering another project--this time from scratch--to see if it
would be possible to put together an IRC client that works with those
"Simple WiFi Modem" gadgets. Since the modem handles the TCP stuff,
basically presenting a telnet connection to the serial port (Super
Serial Card or equivalent), there might be a little more breathing
room to make a client with a few more features. I dunno; I don't have
any experience programming a Super Serial Card, either.
I just saw the video you linked on Facebook. The Mastodon client thing
is pretty neat. I run a Misskey server, so maybe I should try to make
a Misskey client with your proxy stuff. So many project ideas, such
limited time, hahaha.
Maybe it could interest you, it's not exactly a "simple wifi modem" as
it has a protocol, but I'm in the process of making a serial/network
proxy for my Apple //c. It allows connecting to arbitrary hosts/ports,
does http(s), ftp(s), sftp, (that can be extended to whatever libCURL supports), and provides a few helpers (return a match in the
response's body, parse JSON, convert images to HGR and send them.
I'm using it to make a Mastodon client. You can find it at https://github.com/colinleroy/a2tools/tree/master/src
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 489 |
Nodes: | 16 (2 / 14) |
Uptime: | 54:11:55 |
Calls: | 9,673 |
Calls today: | 4 |
Files: | 13,719 |
Messages: | 6,170,785 |