home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!elroy.jpl.nasa.gov!sdd.hp.com!ux1.cso.uiuc.edu!moe.ksu.ksu.edu!maverick.ksu.ksu.edu!news
- From: brtmac@maverick.ksu.ksu.edu (Brett McCoy)
- Newsgroups: comp.sys.sun.misc
- Subject: TCP programming with TLI
- Date: 22 Jan 1993 02:46:37 -0600
- Organization: Kansas State University
- Lines: 21
- Message-ID: <1joc9dINN7ei@maverick.ksu.ksu.edu>
- NNTP-Posting-Host: maverick.ksu.ksu.edu
-
-
- I'm trying to learn how to do TCP programming with the TLI libraries.
- I can connect to ports on machines, but most of the time when I try to
- do a t_rcv() on them I get an error stating that there is an event
- requiring attention, and when I do a t_look() I find that it is a
- disconnect event. I never get any data from the port. I'm trying
- to connect to ports like finger, daytime, netstat, systat, etc.
-
- Thinks work fine on ports like chargen and echo which never close on
- the server end. On ports like netstat it works sort of okay, but the
- output is being truncated. And on ports like daytime which have very
- little output, I never get anything.
-
- Any hints or tips on TLI programming? Is there something I'm missing.
- If tried using the t_rcvdis() function, but TCP doesn't allow data to
- be sent with disconnect requests so there's no help there.
- --
- Brett McCoy -- Computing and Network Services, Kansas State University
- "There's nothing like slapping a piece of cardboard on your head and
- wearing a dress to make you feel like you've accomplished something."
- -- me (immediately after graduation)
-