rxio 0.12.1 → 0.12.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/lib/rxio/client.rb +6 -1
- data/lib/rxio/service.rb +1 -1
- data/lib/rxio/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f3ca2983bef7243b7a8ef20c9075cc73b8b29a99
|
4
|
+
data.tar.gz: cf2981e6c1679d58a0260349759b57f688c08037
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97c12b604254cf0fbfe9ab826aa7604e1607f3a868a1018ebe8d200efea2ef1b1bb0c570236225a685c3f24247c7b15196fe921503a822f9ed943a65594b2300
|
7
|
+
data.tar.gz: 3477b2fa34443e88127d915c6158329104646ddc18fef5d8499a9c6657bdd4edb967d7e3e73ec5d625fbf8f733e2f3482127222aba6b2281ed0a1fb597cd2775
|
data/README.md
CHANGED
@@ -21,6 +21,8 @@ gem install -V rxio
|
|
21
21
|
|
22
22
|
## Usage
|
23
23
|
|
24
|
+
### Introduction
|
25
|
+
|
24
26
|
A simple service is created by spawning an instance of the *RxIO::Service* class, passing a *Handler Module* as argument to its constructor and calling its _run_ method.
|
25
27
|
|
26
28
|
A simple client is created by spawning an instance of the *RxIO::Client* class, passing a *Handler Module* as argument to its constructor and calling its _run_ method.
|
data/lib/rxio/client.rb
CHANGED
@@ -24,7 +24,7 @@ module RxIO
|
|
24
24
|
# Reconnect Delay (seconds)
|
25
25
|
RECONNECT_DELAY = 1
|
26
26
|
|
27
|
-
# Select Timeout (
|
27
|
+
# Select Timeout (seconds)
|
28
28
|
SELECT_TIMEOUT = 0.1
|
29
29
|
|
30
30
|
# Construct
|
@@ -126,6 +126,11 @@ module RxIO
|
|
126
126
|
# Check Socket
|
127
127
|
return nil unless @sock
|
128
128
|
|
129
|
+
# Reset Client Buffers
|
130
|
+
@client[:lock].synchronize { @client[:obuf] = '' }
|
131
|
+
@client[:ibuf] = ''
|
132
|
+
@client[:msgs] = []
|
133
|
+
|
129
134
|
# Acquire Peer Address
|
130
135
|
peer = @sock.peeraddr
|
131
136
|
@client[:peer] = {
|
data/lib/rxio/service.rb
CHANGED
data/lib/rxio/version.rb
CHANGED