Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for ziplinks #5

Open
ldilley opened this issue Mar 1, 2015 · 0 comments
Open

Add support for ziplinks #5

ldilley opened this issue Mar 1, 2015 · 0 comments

Comments

@ldilley
Copy link
Owner

ldilley commented Mar 1, 2015

After adding support for server-to-server communication, add ziplink support. This can be achieved by the following example:

@require 'zlib'

some_str = Zlib::Deflate.deflate("hello world!")
puts some_str
puts Zlib::Inflate.inflate(some_str)@

So, just need to call Network.send(socket, compressed_data) from the sending server and the server on the receiving end will call the deflate method on the received data to get the original message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant