home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / mac / programm / 13190 < prev    next >
Encoding:
Text File  |  1992-07-29  |  1.2 KB  |  28 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!elroy.jpl.nasa.gov!decwrl!csus.edu!netcomsv!mork!gurgle
  3. From: gurgle@netcom.com (Pete Gontier)
  4. Subject: MacTCP: can't send very many single bytes in a row
  5. Message-ID: <p-pmarm.gurgle@netcom.com>
  6. Date: Thu, 30 Jul 92 02:34:55 GMT
  7. Organization: cellular
  8. Keywords: MacTCP TCP network byte single send
  9. Lines: 17
  10.  
  11. Last night I tried to do an intuitive thing: base a function called
  12. tcp_puts on a function called tcp_putchar. tcp_puts was, of course,
  13. calling tcp_putchar for each character in the string, and tcp_putchar
  14. was sending each character to a (Mac)TCP connection. I knew this was
  15. inefficient, but I wanted to see just *how* inefficient it was. Turns
  16. out it was more than inefficient; after a few characters, it *hung*.
  17. So now I don't have a tcp_putchar; I just blast the entire string
  18. every time with tcp_puts and if I need to output a single char, I fake
  19. a string and send it to tcp_puts. I don't send a single character any
  20. too often, so that is not a problem.
  21.  
  22. So the question is --- is this hanging behavior a widely experienced
  23. thing? An acknowledged bug, perhaps?
  24.  
  25. FYI, I'm using MacTCP 1.1.
  26. -- 
  27.  Pete Gontier // EC Technology // gurgle@netcom.com
  28.