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:ke...@apcs.com.au]
> Sent: Wednesday, May 26, 1999 8:42 AM
> To:   hack...@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 <ke...@apcs.com.au>
> 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 majord...@freebsd.org
> with "unsubscribe freebsd-hackers" in the body of the message


To Unsubscribe: send mail to majord...@freebsd.org
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to