Skip to content

cotag/uv-rays

Repository files navigation

uv-rays

Build Status

UV-Rays was designed to eliminate the complexities of high-performance threaded network programming, allowing engineers to concentrate on their application logic.

Core Features

  1. TCP (and UDP) Connection abstractions
  2. Advanced stream tokenization
  3. Scheduled events (in, at, every, cron)
  4. HTTP 1.1 compatible client support

This adds to the features already available from Libuv on which the gem is based

Support

UV-Rays supports all platforms where ruby is available. Linux, OSX, BSD and Windows. MRI, jRuby and Rubinius.

Run gem install uv-rays to install

Getting Started

Here's a fully-functional echo server written with UV-Rays:

require'uv-rays'moduleEchoServerdefon_connect(socket)@ip,@port=socket.peernamelogger.info"-- #{@ip}:#{@port} connected"enddefon_read(data,socket)write">>>you sent: #{data}"close_connectionifdata =~ /quit/ienddefon_closeputs"-- #{@ip}:#{@port} disconnected"endendreactor{UV.start_server"127.0.0.1",8081,EchoServer}

Integrations

UV-Rays works with many existing GEMs by integrating into common HTTP abstraction libraries

About

Abstractions for Libuv

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages