Sending compressed data via socket

Posted by Pizza on Stack Overflow See other posts from Stack Overflow or by Pizza
Published on 2010-06-16T00:08:16Z Indexed on 2010/06/16 0:32 UTC
Read the original article Hit count: 557

Filed under:
|
|

Hi, I have to make a log server in java, and one task is to send the data compressed. Now I am sending it line by line in plain text, but I must compress it. The server handle "HTTP like" request. For example, I can get a log sending "GET xxx.log". This will entablish a TCP connection to the server, the server response with a header and the log, and close the connection. The client, reads line by line and analyzes each LOG entry. I tried some ways without success. My main problem is that I don't know where each line ends(in the client size). Any idea?

© Stack Overflow or respective owner

Related posts about java

Related posts about sockets