From owner-freebsd-hackers Wed May 26 8:58:46 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from gatewaya.anheuser-busch.com (gatewaya.anheuser-busch.com [151.145.250.252]) by hub.freebsd.org (Postfix) with SMTP id C5191153A4 for ; Wed, 26 May 1999 08:58:42 -0700 (PDT) (envelope-from Matthew.Alton@anheuser-busch.com) Received: by gatewaya.anheuser-busch.com; id LAA15302; Wed, 26 May 1999 11:00:59 -0500 Received: from stlabcexg006.anheuser-busch.com(unknown 151.145.101.161) by gatewaya via smap (V2.1) id xma015170; Wed, 26 May 99 11:00:48 -0500 Received: by stlabcexg006.anheuser-busch.com with Internet Mail Service (5.5.2448.0) id ; Wed, 26 May 1999 10:57:36 -0500 Message-ID: From: "Alton, Matthew" To: "'Keith Anderson'" , hackers@freebsd.org Subject: RE: serial ports Date: Wed, 26 May 1999 10:57:34 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) Content-Type: text/plain Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Well, the serial devices are not typically used for TCP traffic, but you should look at ioctl(3), read(3), write(3), socket(3), bind(3), listen(3), send(3), recv(3) for starters. The tty devices are treated as files. Remember, in UNIX everything is a file unless it isn't. The ethernet cards, which cropped up after the 70s and which are not treated as files, are accustomed to TCP traffic. You might want to have a look at these instead. > -----Original Message----- > From: Keith Anderson [SMTP:keith@apcs.com.au] > Sent: Wednesday, May 26, 1999 8:42 AM > To: hackers@freebsd.org > Subject: serial ports > > Dear All > > Could someone point me in the correct direction for help with 'c' > > Some examples for opening a serial port for comms. > Opening tcp connections for use with mysql. > > I'm a programer from the 70's (DOS) and learning FBSD. > > > Thanks > > Keith > > > > "The box said 'Requires Windows 95, NT, or better,' so I installed FreeBSD." > > ** The thing I like most about Windows 98 is... > ** You can download FreeBSD with it! > > ---------------------------------- > E-Mail: Keith Anderson > Australia Power Control Systems Pty. Limited. > Date: 26-May-99 > Time: 23:34:29 > Satelite Service 64K to 2Meg > This message was sent by XFMail > ---------------------------------- > > What's the similarity between an air > conditioner and a computer? They both > stop working when you open windows. > > ---------------------------------- > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message