3 Thrift Transport Support.
Support for Thrift transports
> (require thrift)
3.1 Transport Common
(require thrift/transport/common) | package: thrift |
procedure
(transport-peek t) → byte?
t : transport?
procedure
(transport-read-byte t) → byte?
t : transport?
procedure
(transport-read-bytes t amt) → bytes?
t : transport? amt : exact-positive-integer?
procedure
(transport-read t) → any/c
t : transport?
procedure
(transport-write-byte t b) → void?
t : transport? b : byte?
procedure
(transport-write-bytes t bs [ start-pos] end-pos) → void? t : transport? bs : bytes? start-pos : exact-nonnegative-integer? = 0 end-pos : exact-nonnegative-integer?
procedure
(transport-write t v) → void?
t : transport? v : any/c
procedure
(transport-size t)
→ (or/c exact-nonnegative-integer? eof-object?) t : transport?
procedure
→ (or/c exact-nonnegative-integer? eof-object?) t : transport? (transport-read-position t pos) → (or/c exact-nonnegative-integer? eof-object?) t : transport? pos : exact-nonnegative-integer?
procedure
(input-transport? t) → boolean?
t : transport?
procedure
(output-transport? t) → boolean?
t : transport?
procedure
(flush-transport t) → void?
t : output-transport?
procedure
(close-transport t) → any/c
t : transport?
3.2 Buffered and Framed Transports
(require thrift/transport/buffered) | package: thrift |
procedure
(open-input-buffered-transport wrapped) → input-transport?
wrapped : input-transport?
procedure
(open-output-buffered-transport wrapped) → output-transport?
wrapped : output-transport?
procedure
(buffered-read-length length) → void? length : positive-integer?
procedure
(open-input-framed-transport wrapped) → input-transport?
wrapped : input-transport?
procedure
(open-output-framed-transport wrapped) → output-transport?
wrapped : output-transport?
3.3 File Transport
(require thrift/transport/file) | package: thrift |
procedure
(open-input-file-transport file-path) → transport?
file-path : string?
procedure
(open-output-file-transport file-path) → transport?
file-path : string?
3.4 Console Transport
(require thrift/transport/console) | package: thrift |
procedure
(open-input-console-transport buffer) → transport?
buffer : bytes?
procedure
(open-output-console-transport) → transport?
3.5 In-Memory Transport
(require thrift/transport/memory) | package: thrift |
procedure
(open-input-memory-transport read-buffer) → transport?
read-buffer : bytes?
procedure
(open-output-memory-transport) → transport?
procedure
(transport-output-bytes t) → bytes?
t : transport?