New topic: 

Sending binary stream thru tcpsocket ok w/mac;  pc truncates

<http://forums.realsoftware.com/viewtopic.php?t=32169>

       Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic         Author  
Message       william50           Post subject: Sending binary stream thru 
tcpsocket ok w/mac;  pc truncatesPosted: Sun Jan 24, 2010 2:07 pm               
         
Joined: Mon Apr 07, 2008 4:06 pm
Posts: 9              I am reading a binary stream (approximately 50k size) 
byte by byte and sending it out the tcpsocket.

It works perfectly on the mac, all 50k bytes are sent and then received on the 
other end.

When I run the same application on a pc, the pc will only send the first 512 
bytes even though the application reports all bytes have been sent. The other 
end only receives the first 512 bytes.

Here is how I am sending one byte at a time:

  tcpSocket2.flush
  tcpSocket2.write(chr(b.readbyte))   
                            Top            Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 1 post ]     
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to