Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Ruby library for games networking. Uses ENet as backend
C Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
examples
ext/renet
lib
README
Rakefile

README

=================================================
 rENet
 Ruby library for games networking
-------------------------------------------------
	     -= Work in Progress =-
	     No docs or comments right now :|
	     Just this readme ;x
=================================================

 Planned:
 - ENet::Connection (client)
 - ENet::Server     (server)
 - Others
 
 More or less finished:
 - ENet::Connection
 - ENet::Server
 
-------------------------------------------------
 Available binaries:
 - Ruby 1.9 Windows 32bits (Mingw)
 
=================================================
 Under MIT license
------------------------------------------------
 Uses ENet as backend < http://enet.bespin.org/ >
=================================================

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)
Something went wrong with that request. Please try again.