From: grahn+nntp@snipabacken.se   
      
   On Tue, 03 Mar 2009 21:22:01 -0700, Glen Herrmannsfeldt    
   wrote:   
   > Jorge wrote:   
   >   
   >> I am researching the most efficient method for streaming text over the   
   >> internet. The text is compressed. Currently, I am zipping the text,   
   >> and sending it over a tcp socket. This is a "real-time" application,   
   >> so the zip file is sent in small pieces. Problem is, the header to   
   >> payload ratio is quite large, so not very efficient.   
      
   Like B. M. more or less wrote elsewhere, if most of your TX segments   
   aren't full (1500 bytes or so) you are doing something wrong. Or you   
   don't have a good connection to the destination to begin with.   
      
   > I am not sure about zlib, bug gzip can compress a stream of   
   > data of any length. I usually do something like:   
   >   
   > gzip < infile | rsh somewhere "gunzip > outfile"   
      
   Same general idea: scp -C infile somewhere:outfile. Scp and ssh have   
   builtin support for zlib compression.   
      
   The poster can do the same thing that scp does. But maybe he should   
   consider not reinventing the wheel. scp is just one of several proven   
   and well-known ways of sending files over IP. And it adds encryption,   
   user and host authentication and many other things which he may need.   
      
   /Jorgen   
      
   --   
    // Jorgen Grahn R'lyeh wgah'nagl fhtagn!   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|