rxio 1.2.9 → 1.2.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -0
- 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: 228708ecd79c1afb5bd62da4683bef150cf50c6a
|
4
|
+
data.tar.gz: 0c66ec5a480f2b2fefee570fa4e0b75167891b71
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5cc47f04fb679e4155bf0224cc0f26ecbb30ff5c4bee7ef166175a9bdf1a808e70dac48d79543231c693b56578162a8f125cec048a63b9d632e77e7d332860af
|
7
|
+
data.tar.gz: b303e51ca173458e430f85bccea0249965836eb2aa9236bbbe0835f0456aeb8233e8bba1c3f8766d6d686ba52e0e9e06f8b9039e336fd483a104d5dd34f9f53a
|
data/README.md
CHANGED
@@ -133,6 +133,16 @@ Note: this method does not perform any encoding or transformation on the data. I
|
|
133
133
|
|
134
134
|
Used to add a data chunk to the endpoint's input buffer.
|
135
135
|
|
136
|
+
### The Peer Hash
|
137
|
+
|
138
|
+
Most of RxIO works around a *peer hash*, which is used to represent information about a remote peer.
|
139
|
+
This hash is built by RxIO when connecting to a service, or when accepting a client's connection request.
|
140
|
+
|
141
|
+
The hash contains a lot of information but only two elements are really important for the user:
|
142
|
+
|
143
|
+
* :peer - A hash containing *name*, *addr*, and *port* of the remote peer
|
144
|
+
* :local - A reference to the Service / Client instance on the *local* end.
|
145
|
+
|
136
146
|
### Dropping Clients
|
137
147
|
|
138
148
|
To properly drop a client (ensuring that any buffered data is flushed out), simply set its *:drop* attribute to anything truthy:
|
data/lib/rxio/version.rb
CHANGED