469,575 Members | 1,703 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,575 developers. It's quick & easy.

Data compression in Socket

Hi I have written a client/server socket programme in Linux. Now I need
to compress data using zip or bzip2 compression or whatever is possible
before sending the data via socket to the remote end. It will be great
if the client and server can interoperate in linux and windows.

thanks a lot!
biku

Nov 14 '05 #1
3 3632
In article <11*********************@o13g2000cwo.googlegroups. com>,
Biku <ro*********@yahoo.com> wrote:
:Hi I have written a client/server socket programme in Linux. Now I need
:to compress data using zip or bzip2 compression or whatever is possible
:before sending the data via socket to the remote end. It will be great
:if the client and server can interoperate in linux and windows.

So do it already. You can get bzip library sources easily enough,
and when I've looked at similar libraries they have always included
the facility to compress strings in memory as well as to compress files.
--
Oh, to be a Blobel!
Nov 14 '05 #2
Bike said the following, on 02/09/05 15:00:
Hi I have written a client/server socket programme in Linux. Now I need
to compress data using zip or bzip2 compression or whatever is possible
before sending the data via socket to the remote end. It will be great
if the client and server can interoperate in linux and windows.


This really is not a question about the C language. The group
comp.unfix.programmer is probably better for this sort of thing.

[OT]
The 'lib' compression library is available for both Linux and Windows:
http://www.zlib.org/

Descriptions of the compressed formats are in RFC 1950-1952.
[/OT]

--
Rich Gibbs
rg****@alumni.princeton.edu
Nov 14 '05 #3
Biku wrote:
Hi I have written a client/server socket programme in Linux. Now I need
to compress data using zip or bzip2 compression or whatever is possible
before sending the data via socket to the remote end. It will be great
if the client and server can interoperate in linux and windows.

thanks a lot!
biku


Good for you.

gtoomey
Nov 14 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Marek Möhling | last post: by
8 posts views Thread by Anurag | last post: by
1 post views Thread by Jerome Symons | last post: by
14 posts views Thread by John J. Hughes II | last post: by
10 posts views Thread by oktayarslan | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.