quic 0.0.3 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.clang-format +1 -0
- data/.git-blame-ignore-revs +2 -0
- data/CHANGELOG.md +15 -0
- data/README.md +76 -2
- data/examples/demo_certificates.rb +67 -0
- data/examples/echo_endpoint_demo.rb +170 -0
- data/examples/echo_server_demo.rb +2 -58
- data/ext/quic/connection_client.c +77 -59
- data/ext/quic/connection_common.c +423 -377
- data/ext/quic/connection_common.h +20 -11
- data/ext/quic/connection_server.c +67 -48
- data/ext/quic/endpoint.c +206 -200
- data/ext/quic/endpoint.h +8 -5
- data/ext/quic/ext_api.c +41 -47
- data/ext/quic/include/quic/ext.h +26 -19
- data/ext/quic/quic.c +75 -67
- data/ext/quic/quic.h +4 -2
- data/ext/quic/stream.c +80 -80
- data/ext/quic/stream.h +11 -5
- data/ext/quic/tls_context.c +79 -70
- data/ext/quic/tls_context.h +2 -1
- data/lib/quic/version.rb +1 -1
- data/sig/quic.rbs +8 -4
- metadata +5 -1
data/sig/quic.rbs
CHANGED
|
@@ -323,15 +323,19 @@ module QUIC
|
|
|
323
323
|
# Server) until the peer's flow control window has room for the full
|
|
324
324
|
# payload, then queues all bytes and returns data.bytesize. Requires the
|
|
325
325
|
# owning connection to be bound to a socket via #bind; raises
|
|
326
|
-
# QUIC::Error::NotBound otherwise.
|
|
326
|
+
# QUIC::Error::NotBound otherwise. Raises QUIC::Error::StreamClosed,
|
|
327
|
+
# while waiting too, once the stream has been reset or closed, or the
|
|
328
|
+
# peer has sent STOP_SENDING. STOP_SENDING also drops what was queued
|
|
329
|
+
# but not yet sent.
|
|
327
330
|
def write: (String data, ?fin: bool) -> Integer
|
|
328
331
|
|
|
329
332
|
# Non-blocking variant. Queues as much of `data` as the current flow
|
|
330
333
|
# control window allows and returns the byte count actually queued.
|
|
331
334
|
# Raises QUIC::Error::WaitWritable (mixed in with IO::WaitWritable) when
|
|
332
|
-
# the window is zero and the payload is non-empty
|
|
333
|
-
#
|
|
334
|
-
#
|
|
335
|
+
# the window is zero and the payload is non-empty, and
|
|
336
|
+
# QUIC::Error::StreamClosed as #write does. If only a partial prefix is
|
|
337
|
+
# accepted, `fin: true` is NOT propagated; the caller must re-issue with
|
|
338
|
+
# `fin: true` on the trailing chunk.
|
|
335
339
|
def write_nonblock: (String data, ?fin: bool) -> Integer
|
|
336
340
|
def eof?: () -> bool
|
|
337
341
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: quic
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Yusuke Nakamura
|
|
@@ -36,14 +36,18 @@ extensions:
|
|
|
36
36
|
- ext/quic/extconf.rb
|
|
37
37
|
extra_rdoc_files: []
|
|
38
38
|
files:
|
|
39
|
+
- ".clang-format"
|
|
40
|
+
- ".git-blame-ignore-revs"
|
|
39
41
|
- CHANGELOG.md
|
|
40
42
|
- CODE_OF_CONDUCT.md
|
|
41
43
|
- LICENSE-DEPENDENCIES.txt
|
|
42
44
|
- LICENSE.txt
|
|
43
45
|
- README.md
|
|
44
46
|
- Rakefile
|
|
47
|
+
- examples/demo_certificates.rb
|
|
45
48
|
- examples/doq_demo.rb
|
|
46
49
|
- examples/echo_demo.rb
|
|
50
|
+
- examples/echo_endpoint_demo.rb
|
|
47
51
|
- examples/echo_server_demo.rb
|
|
48
52
|
- examples/handshake_demo.rb
|
|
49
53
|
- examples/io_loop_demo.rb
|