Using Zlib

Willem Broekema willem@REDACTED
Wed Jun 19 20:21:54 CEST 2002

Vladimir Sekissov wrote:
> willem> However, I was hoping it could be used to uncompress an incoming TCP data 
> willem> stream. I guess that's out of reach... :-(
> You can use ram_file, I think:
> 74> {ok, FD} = file:open("TestTest", [read, write, ram]).

Thanks Vladimir, I couldn't find that in the documentation. Now that I'm on 
Linux, I'm *supposed* to read the source, I guess :-)

But how do you go from a TCP Socket to a ram_file? I can only think of 
using a buffer file in-between.

Thanks again,

- Willem

More information about the erlang-questions mailing list