Sending compressed data via socket
- by Pizza
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?