home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.wizards:5248 comp.unix.internals:2059
- Path: sparky!uunet!olivea!charnel!sifon!thunder.mcrcim.mcgill.edu!mouse
- From: mouse@thunder.mcrcim.mcgill.edu (der Mouse)
- Newsgroups: comp.unix.wizards,comp.unix.internals,bix.sco.opendesktop
- Subject: Re: Need to have a device open a TCP/IP connection..
- Message-ID: <1992Dec16.084406.9528@thunder.mcrcim.mcgill.edu>
- Date: 16 Dec 92 08:44:06 GMT
- References: <1992Dec11.021307.11286@markv.com>
- Organization: McGill Research Centre for Intelligent Machines
- Lines: 33
-
- In article <1992Dec11.021307.11286@markv.com>, lance@markv.com (Lance Ellinghouse) writes:
-
- > I want to re-setup our UUCP outbound connections. The problem is
- > that our modems are sitting on a terminal server now. Each modem
- > though has a unique IP address assigned to it. I need to be able to
- > connect to that modem using a TCP/IP socket, but from inside
- > "uucico". [...] I was told by other people, "That is why they made
- > pty's. Use them."
-
- This is more or less correct.
-
- > I have no idea how to.
-
- Since you don't give any hint what sort of system you have (I can infer
- that it's probably a relatively recent UNIX derivative, since you imply
- it speaks UUCP and TCP), I can only guess at this too.
-
- > I have tried a few things (open the master side, wait for chars, open
- > the slave side, shove chars, no output/input, hangs!).
-
- This is about as good a description as you can get in that little text.
- Find a free pty pair, open the control side, connect to the modem, sic
- uucico on the slave side. How you go about the various steps depends
- on your system. I have some programs that mess with ptys on systems
- that use the Berkeley pty mechanisms, and one of them even contains
- conditional compilation to make it work on at least some versions of
- IRIX (SGI's UNIX-alike, with a non-BSD pty interface). I have no
- trivial demo programs for ptys, unfortunately.
-
- der Mouse
-
- mouse@larry.mcrcim.mcgill.edu
-