[comp.sys.amiga.tech] Programming info for 2 or more Serial Ports..

rickf@pnet02.cts.com (Rick Flower) (01/25/89)

I'm in the process of writing a BBS on my A1000 and would like to be able to
implement the ability to have it work with multiple serial ports on a system
that is capable.. So, what I need to know is how to address logical serial
port #1 (assuming unit #0 is built-in).  Anyway, does this just basically mean
that I can change the parameters to the OpenDevice from unit #0 to #1 or
whatever???  I hope that this is an EASY question....!

 
Thanks in advance...
===============================================================================
                                I Thought So...

UUCP: {ames!elroy, <backbone>}!gryphon!pnet02!rickf
INET: rickf@pnet02.cts.com
===============================================================================

bryce@cbmvax.UUCP (Bryce Nesbitt) (01/31/89)

In article <11164@gryphon.COM> rickf@pnet02.cts.com (Rick Flower) writes:
| I'm in the process of writing a BBS on my A1000 and would like to be able to
| implement the ability to have it work with multiple serial ports on a system
| that is capable.. So, what I need to know is how to address logical serial
| port #1 (assuming unit #0 is built-in).

In the OpenDevice call, unit #0 is the "default" unit, settable in preferences.
Unit #1 is the "built in" port.  Unit #2 is the first extended unit.

The unit parameter to OpenDevice is a simple unisigned longword.