Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!cs.utexas.edu!tut.cis.ohio-state.edu!bloom-beacon!eru!luth!sunic!tut!santra!ako From: ako@hutcs.hut.FI (Arto Kojo) Newsgroups: comp.sys.mac.hypercard Subject: MacTCP problem Message-ID: Date: 9 Nov 89 11:49:53 GMT Sender: news@santra.UUCP Organization: Helsinki University of Technology, FINLAND Lines: 30 It seems that there is a bug in TCPRecvChars XFCN in MacTCP Toolkit 1.0 I have 25000 chars waiting in UNIX host. Due to some kind of buffering, the first call of TCPCharsAvailable returns only a number of 1500..2000. When I read characters for example with TCPRecvUpTo, TCPCharsAvailable increases every now and then, and I finally get all those 25000 characters. So, this method works and I can read all the chars. However, reading with TCPRecvUpTo is slow, and because I know the exact number of characters, I decided to try TCPRecvChars. But TCPRecvChars(connectionID,25000) returns only the first "buffer", that is, about 1500 chars. And it won't wait until all of the characters has been received, as the documentation stack says. After TCPRecvChars exits with those 1500 chars, TCPCharsAvailable returns a number greater than zero, so there is more characters to be read.. Comments? -- :::: Arto Kojo :::::::::::::::::::::: Helsinki University of Technology :::: :: TKK/TKO-lab/Y227 ako@hutcs.hut.fi :: :: 02150 ESPOO FINLAND s29808u@puukko.hut.fi :: :::: tel: +358-0-4513236 :::::::::::: akojo@otax.tky.hut.fi ::::::::::::::::