Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!mcvax!ukc!dcl-cs!strath-cs!paisley!rh From: rh@cs.paisley.ac.uk (Robert Hamilton) Newsgroups: comp.sources.d,comp.unix.wizards Subject: Re: uuslave.c (Help with UUCP protocol) Message-ID: <276@paisley.ac.uk> Date: Tue, 3-Feb-87 04:37:26 EST Article-I.D.: paisley.276 Posted: Tue Feb 3 04:37:26 1987 Date-Received: Sat, 7-Feb-87 06:47:09 EST References: <1911@ncoast.UUCP> <1683@hoptoad.uucp> <1943@ncoast.UUCP> <1040@sigma.UUCP> Sender: rh@paisley.ac.uk Reply-To: rh@cs.paisley.ac.uk (Robert Hamilton) Organization: Paisley College of Technology Scotland. Lines: 32 Xref: mnetor comp.sources.d:243 comp.unix.wizards:862 In article <1040@sigma.UUCP> bill@sigma.UUCP (William Swan) writes: >It is *not* written for BDS C. I have been studying it for a bit and have >resolved pretty much everything EXCEPT the "inita/initb,initc" part of >the protocol. It appears that there may be some information exchanged in >this part of the protocol, but there is insufficient information on what >this might be. (It's also possible that this part of the protocol is >bogus). Can any UUCP experts out there enlighten me/us? We've been playing with uuslave. It is a crafty little bit of code. It condenses a lot of the usual uucp code to give a prog. that will run on almost anything and allow uucp file copies and *mail* transfers. So far its run on BBC's and ATARI ST's The only system dependant bits are: (1) opening the serial port, setting it to RAW mode no ECHO and 8 bits (thats where the inita stuff comes in) In most micros you can just open it. (fdtty=open("rs423:",3) or sim.) (2) the read and write code (xgetc() and xputc()) xgetx() is tricky in that it should timeout after 10 seconds if it doesn't get a char. You can use polling if you don't have signal() But in fact it will work most of the time without a timeout. -- JANET: rh@uk.ac.paisley.cs EMAIL: rh@cs.paisley.ac.uk | Post: Systems manager. UUCP: ...!seismo!mcvax!ukc!paisley!rh | Department of Computing, Phone: +44 41 887 1241 Ext. 219 | Paisley College | High St. Paisley. | Scotland. | PA1 2BE