GNO + Marinetti = MariGNOtti
Go to file
Kelvin Sherlock c9be4bb807 update README
2013-08-08 20:33:56 -04:00
bin gno/me compatibility 2012-07-09 23:10:15 -04:00
etc move etc files 2013-08-08 20:19:39 -04:00
.gitignore updated git ignore 2012-07-09 22:56:24 -04:00
driver.c fix compile errors. 2012-05-14 21:44:13 -04:00
maccept.c fix compile errors. 2012-05-14 21:44:13 -04:00
main.c
makefile.mk fix compile errors. 2012-05-14 21:44:13 -04:00
marignotti.h getpeername 2012-05-14 21:30:27 -04:00
mattach.c
mbind.c handle binding port 0. 2012-05-14 23:13:08 -04:00
mconnect.c fix connect bug when family is unspecified 2013-08-08 20:19:59 -04:00
mdetach.c
mgetpeername.c fix compile errors. 2012-05-14 21:44:13 -04:00
mgetsockname.c fix compile errors. 2012-05-14 21:44:13 -04:00
mgetsockopt.c
mioctl.c
mlisten.c ... 2012-05-14 21:31:32 -04:00
mread.c read/write oob. 2012-05-13 19:46:25 -04:00
mselect.c add comments. 2012-05-13 19:47:02 -04:00
msetsockopt.c
mshutdown.c
mwrite.c check shut_rd/shut_wr for read/write. 2012-05-13 19:45:51 -04:00
net.h
README.md update README 2013-08-08 20:33:56 -04:00
README.text update README 2013-08-08 20:33:56 -04:00
s16debug.c
s16debug.h
table.c accept/listen support. 2012-05-13 19:46:49 -04:00

MariGNOtti

MariGNOtti is a network driver for GNO/ME 2.0.6. It provides a translation layer between BSD sockets and Marinetti. Think of it as a replacement for GSTCP.

Installation:

  1. copy the marignotti, ftp, sic, and whois executables to your /usr/local/bin directory.
  • ftp is an update of the gno 2.0.6 ftp (it adds passive ftp support).

  • whois is an updated version (from FreeBSD 9.0). The gno 2.0.6 version is from FreeBSD 2.1.

  • sic is a very simple irc client.

example: sic -h irc.a2central.com -p 6667 -n myname (a bunch of messages) :j #a2c.chat << join a room

  1. copy the etc/services file to /etc/services (if it does not exist).

  2. edit and copy the etc/resolve.conf file to /etc/resolve.conf (if it does not exist). This file is your DNS server

  3. If you don't have a DNS server, edit /etc/hosts to include your favorite sites.

Usage:

Run marignotti in the background (marignotti &). To quit, bring it to the foreground (fg) and hit control-C.

If you're using the Sweet-16 emulator version 3.0, marignotti -d will print some debugging information to the debugger console. marignotti -dd will enable extra debugging information (including the contents of reads and writes).

What it does:

While marignotti is running in the background, it translates BSD socket calls into Marinetti tool calls. It also handles blocking IO, socket options, select, etc.

Architecture:

BSD sockets are, by default, blocking whereas everything Marinetti does (other than the inital network connection) is non-blocking. To handle blocking behavior, each socket has a semaphore. The main thread performs all the polling and uses the semaphore to signal the other threads when they can proceed.

Supported:

socket -- only support for PF_UNIX, SOCK_STREAM, and SOCK_DGRAM.

connect -- but non-blocking connects are not yet supported.

bind -- currently a no-op since the old whois used it.

read/recv/recvfrom -- supports blocking, non-blocking, timeouts, and RCVLOWAT.
The address parameter of recvfrom is not supported. OOB is not supported.

write/send/sendto -- does not support SNDLOWAT, OOB, or the address parameter of sendto.

close -- does not support SOLINGER type functionality.

shutdown -- sets flags but the flags are not completely implemented.

ioctl -- support for FIONREAD (bytes available to read) and FIONBIO (set/clear non-blocking).

getsockopt -- support for SO_OOBINLINE, SO_SNDLOWAT, SO_RCVLOWAT, SO_SNDTIMEO, SO_RCVTIMEO, SNDLOWAT and SNDTIMEO set flags but don't have any other effect. OOBINLINE is only be supported when true.

getsockopt -- support for SO_TYPE, SO_OOBINLINE, SO_SNDLOWAT, SO_RCVLOWAT, SO_SNDTIMEO

Not (yet) supported:

  • OOB (out of band) data (and will never be supported).
  • raw sockets (SOCK_RAW)
  • TCP servers (listen/accept). Should be simple, though.
  • UDP servers