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