home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / sun / misc / 6429 < prev    next >
Encoding:
Internet Message Format  |  1993-01-22  |  1.5 KB

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