Question : does TCP\IP have a compression by defualt?

hello there guys... i just want to ask does the TCP\ip protocol have a compression method by defualt? bcoz i was reading in some websites and it said that the tcp\ip have a CSLIP compression but i don't know if its enabled by defualt or i need to enable it?

is there any compression mothedos beside CSLIP i can implement for my .NET project?  


many thanks in advance
Co0L DBA

Answer : does TCP\IP have a compression by defualt?

That's exactly what I've told you.You use the GzipStream class, docmented in the first link, and use it with a NetwokStream,as exemplified in the second link. If you could provide more information about your platform and your code I could provide more concrete examples.

The basic example in the second link is:
// Write compressed to network stream example - not compiled or tested.
using(NetworkStream ns = new NetworkStream(socket))
using ( GZipStream gz = new GZipStream(, CompressionMode.Compress, true) )
{
gz.Write(...); // Write bytes to compressed stream, which will
in-turn send the compressed bytes to the network stream.
// other work..
gz.Flush();
}
Random Solutions  
 
programming4us programming4us