renet 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/renet/renet_connection.c +2 -2
- data/ext/renet/renet_server.c +4 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f35519f3b0040c2c3b2e3ec29480aa0aedc358d6
|
4
|
+
data.tar.gz: 29316765a50eb3f3dd8102b8f9d4e5c9736eb2eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a59e89baa98c99daa7aaf820af8ef8f11399852283ddd4b85425ce70b07864038b9c76c338bc475b5a47a738b7e9f86396ae2937bbbd30e291c48fc252c6e3a
|
7
|
+
data.tar.gz: 94d4286b31e39366ddd2b5abd1c8046541c88aba2b654d1ca834e014394b0229cb236a9801a01ad700855d88e7a1ba42b9876b326a9123705ab63a4754ca7cf5
|
@@ -234,11 +234,11 @@ VALUE renet_connection_send_packet(VALUE self, VALUE data, VALUE flag, VALUE cha
|
|
234
234
|
{
|
235
235
|
if (flag == Qtrue)
|
236
236
|
{
|
237
|
-
packet = enet_packet_create(cdata, RSTRING_LEN(data)
|
237
|
+
packet = enet_packet_create(cdata, RSTRING_LEN(data), ENET_PACKET_FLAG_RELIABLE);
|
238
238
|
}
|
239
239
|
else
|
240
240
|
{
|
241
|
-
packet = enet_packet_create(cdata, RSTRING_LEN(data)
|
241
|
+
packet = enet_packet_create(cdata, RSTRING_LEN(data), 0);
|
242
242
|
}
|
243
243
|
enet_peer_send(connection->peer, NUM2UINT(channel), packet);
|
244
244
|
}
|
data/ext/renet/renet_server.c
CHANGED
@@ -115,11 +115,11 @@ VALUE renet_server_send_packet(VALUE self, VALUE peer_id, VALUE data, VALUE flag
|
|
115
115
|
ENetPacket* packet;
|
116
116
|
if (flag == Qtrue)
|
117
117
|
{
|
118
|
-
packet = enet_packet_create(cdata, RSTRING_LEN(data)
|
118
|
+
packet = enet_packet_create(cdata, RSTRING_LEN(data), ENET_PACKET_FLAG_RELIABLE);
|
119
119
|
}
|
120
120
|
else
|
121
121
|
{
|
122
|
-
packet = enet_packet_create(cdata, RSTRING_LEN(data)
|
122
|
+
packet = enet_packet_create(cdata, RSTRING_LEN(data), 0);
|
123
123
|
}
|
124
124
|
enet_peer_send(&(server->host->peers[NUM2UINT(peer_id)]), NUM2UINT(channel), packet);
|
125
125
|
rb_mutex_unlock(lock);
|
@@ -137,11 +137,11 @@ VALUE renet_server_broadcast_packet(VALUE self, VALUE data, VALUE flag, VALUE ch
|
|
137
137
|
ENetPacket* packet;
|
138
138
|
if (flag == Qtrue)
|
139
139
|
{
|
140
|
-
packet = enet_packet_create(cdata, RSTRING_LEN(data)
|
140
|
+
packet = enet_packet_create(cdata, RSTRING_LEN(data), ENET_PACKET_FLAG_RELIABLE);
|
141
141
|
}
|
142
142
|
else
|
143
143
|
{
|
144
|
-
packet = enet_packet_create(cdata, RSTRING_LEN(data)
|
144
|
+
packet = enet_packet_create(cdata, RSTRING_LEN(data), 0);
|
145
145
|
}
|
146
146
|
enet_host_broadcast(server->host, NUM2UINT(channel), packet);
|
147
147
|
rb_mutex_unlock(lock);
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: renet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dahrkael & Job Vranish
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-10-30 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Ruby library for games networking. Uses ENet as backend
|
14
14
|
email: dark.wolf.warrior@gmail.com
|
@@ -66,7 +66,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
66
66
|
version: '0'
|
67
67
|
requirements: []
|
68
68
|
rubyforge_project:
|
69
|
-
rubygems_version: 2.
|
69
|
+
rubygems_version: 2.6.7
|
70
70
|
signing_key:
|
71
71
|
specification_version: 4
|
72
72
|
summary: Ruby library for games networking. Uses ENet as backend
|