renet 0.1.14 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README +6 -16
- data/ext/renet/callbacks.c +53 -0
- data/ext/renet/compress.c +654 -0
- data/ext/renet/enet/callbacks.h +27 -0
- data/ext/renet/enet/enet.h +592 -0
- data/ext/renet/enet/list.h +43 -0
- data/ext/renet/enet/protocol.h +198 -0
- data/ext/renet/enet/time.h +18 -0
- data/ext/renet/enet/types.h +13 -0
- data/ext/renet/enet/unix.h +47 -0
- data/ext/renet/enet/utility.h +12 -0
- data/ext/renet/enet/win32.h +57 -0
- data/ext/renet/extconf.rb +5 -16
- data/ext/renet/host.c +492 -0
- data/ext/renet/list.c +75 -0
- data/ext/renet/packet.c +165 -0
- data/ext/renet/peer.c +1004 -0
- data/ext/renet/protocol.c +1913 -0
- data/ext/renet/renet.c +1 -0
- data/ext/renet/renet_connection.c +383 -208
- data/ext/renet/renet_connection.h +3 -3
- data/ext/renet/renet_server.c +263 -159
- data/ext/renet/renet_server.h +5 -5
- data/ext/renet/unix.c +557 -0
- data/ext/renet/win32.c +478 -0
- data/lib/renet.rb +1 -16
- metadata +33 -16
data/lib/renet.rb
CHANGED
@@ -1,16 +1 @@
|
|
1
|
-
|
2
|
-
require "#{File.dirname(__FILE__)}/renet.bundle"
|
3
|
-
end
|
4
|
-
|
5
|
-
if File.exists?("#{File.dirname(__FILE__)}/renet.so")
|
6
|
-
require "#{File.dirname(__FILE__)}/renet.so"
|
7
|
-
end
|
8
|
-
|
9
|
-
if File.exists?("#{File.dirname(__FILE__)}/renet.1.8.so")
|
10
|
-
if defined? RUBY_VERSION and RUBY_VERSION[0..2] == '1.9' then
|
11
|
-
version = '1.9'
|
12
|
-
else
|
13
|
-
version = '1.8'
|
14
|
-
end
|
15
|
-
require "#{File.dirname(__FILE__)}/renet.#{version}.so"
|
16
|
-
end
|
1
|
+
require 'renet/renet'
|
metadata
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: renet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.2.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
|
-
- Dahrkael
|
7
|
+
- Dahrkael & Job Vranish
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2015-08-12 00:00:00.000000000 Z
|
13
12
|
dependencies: []
|
14
13
|
description: Ruby library for games networking. Uses ENet as backend
|
15
14
|
email: dark.wolf.warrior@gmail.com
|
@@ -19,38 +18,56 @@ extensions:
|
|
19
18
|
extra_rdoc_files: []
|
20
19
|
files:
|
21
20
|
- README
|
22
|
-
- lib/renet.rb
|
23
21
|
- examples/Console-Server.rb
|
24
22
|
- examples/Gosu-Client.rb
|
25
|
-
- ext/renet/
|
26
|
-
- ext/renet/
|
27
|
-
- ext/renet/
|
23
|
+
- ext/renet/callbacks.c
|
24
|
+
- ext/renet/compress.c
|
25
|
+
- ext/renet/enet/callbacks.h
|
26
|
+
- ext/renet/enet/enet.h
|
27
|
+
- ext/renet/enet/list.h
|
28
|
+
- ext/renet/enet/protocol.h
|
29
|
+
- ext/renet/enet/time.h
|
30
|
+
- ext/renet/enet/types.h
|
31
|
+
- ext/renet/enet/unix.h
|
32
|
+
- ext/renet/enet/utility.h
|
33
|
+
- ext/renet/enet/win32.h
|
34
|
+
- ext/renet/extconf.rb
|
35
|
+
- ext/renet/host.c
|
36
|
+
- ext/renet/list.c
|
37
|
+
- ext/renet/packet.c
|
38
|
+
- ext/renet/peer.c
|
39
|
+
- ext/renet/protocol.c
|
28
40
|
- ext/renet/renet.c
|
41
|
+
- ext/renet/renet.h
|
29
42
|
- ext/renet/renet_connection.c
|
43
|
+
- ext/renet/renet_connection.h
|
30
44
|
- ext/renet/renet_server.c
|
31
|
-
- ext/renet/
|
45
|
+
- ext/renet/renet_server.h
|
46
|
+
- ext/renet/unix.c
|
47
|
+
- ext/renet/win32.c
|
48
|
+
- lib/renet.rb
|
32
49
|
homepage: https://github.com/Dahrkael/rENet
|
33
|
-
licenses:
|
50
|
+
licenses:
|
51
|
+
- MIT
|
52
|
+
metadata: {}
|
34
53
|
post_install_message:
|
35
54
|
rdoc_options: []
|
36
55
|
require_paths:
|
37
56
|
- lib
|
38
57
|
required_ruby_version: !ruby/object:Gem::Requirement
|
39
|
-
none: false
|
40
58
|
requirements:
|
41
|
-
- -
|
59
|
+
- - ">="
|
42
60
|
- !ruby/object:Gem::Version
|
43
61
|
version: '0'
|
44
62
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
45
|
-
none: false
|
46
63
|
requirements:
|
47
|
-
- -
|
64
|
+
- - ">="
|
48
65
|
- !ruby/object:Gem::Version
|
49
66
|
version: '0'
|
50
67
|
requirements: []
|
51
68
|
rubyforge_project:
|
52
|
-
rubygems_version:
|
69
|
+
rubygems_version: 2.4.5
|
53
70
|
signing_key:
|
54
|
-
specification_version:
|
71
|
+
specification_version: 4
|
55
72
|
summary: Ruby library for games networking. Uses ENet as backend
|
56
73
|
test_files: []
|