Socket
Book a DemoInstallSign in
Socket

renet

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

renet

0.2.2
bundlerRubygems
Version published
Maintainers
1
Created
Source

================================================= rENet Ruby library for games networking by Dahrkael and Job Vranish

Under MIT license

Uses ENet as backend < http://enet.bespin.org/ >

Planned:

  • ENet::Connection (client)
  • ENet::Server (server)
  • Others

Finished:

  • ENet::Connection
  • ENet::Server

Library overview

module ENet |- ENET_VERSION (string) |- RENET_VERSION (string) | |- Connection (class) | |- attr_reader | | |- online? | | |- connected? | | | |- attr_accessor | | |- total_sent_data | | |- total_received_data | | |- total_sent_packets | | |- total_received_packets | | | |- methods | |- initialize (remote host, remote port, channels to allocate, download bw, upload bw) | |- connect (timeout in ms) | |- disconnect (timeout in ms) | |- send_packet (data to send, reliable or not, channel id) | |- send_queued_packets (nothing) | |- flush (nothing) | |- update (timeout in ms) | |- use_compression (true or false) | |- on_connection (method to call) | |- on_packet_receive (method to call) | |- on_disconnection (method to call) | |- Server (class) |- attr_reader | |- max_clients | |- clients_count | |- attr_accessor | |- total_sent_data | |- total_received_data | |- total_sent_packets | |- total_received_packets | |- methods |- initialize (local port, n� of allowed clients, channels to allocate, download bw, upload bw) |- disconnect_client (client id) |- send_packet (client id, data to send, reliable or not, channel id) |- broadcast_packet (data to send, reliable or not, channel id) |- send_queued_packets (nothing) |- flush (nothing) |- update (timeout in ms) |- use_compression (true or false) |- on_connection (method to call) |- on_packet_receive (method to call) |- on_disconnection (method to call)

FAQs

Package last updated on 30 Oct 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.