On this page:
3.1 Transport Common
transport
transport-peek
transport-read-byte
transport-read-bytes
transport-read
transport-write-byte
transport-write-bytes
transport-write
transport-size
transport-read-position
input-transport?
output-transport?
flush-transport
close-transport
3.2 Buffered and Framed Transports
open-input-buffered-transport
open-output-buffered-transport
buffered-read-length
open-input-framed-transport
open-output-framed-transport
3.3 File Transport
open-input-file-transport
open-output-file-transport
3.4 Console Transport
open-input-console-transport
open-output-console-transport
3.5 In-Memory Transport
open-input-memory-transport
open-output-memory-transport
transport-output-bytes
7.4

3 Thrift Transport Support.

Support for Thrift transports

Example:
> (require thrift)

3.1 Transport Common

 (require thrift/transport/common) package: thrift

struct

(struct transport (name source port overrides))

  name : string?
  source : string?
  port : port?
  overrides : hash?
TBD

procedure

(transport-peek t)  byte?

  t : transport?
TBD

procedure

(transport-read-byte t)  byte?

  t : transport?
TBD

procedure

(transport-read-bytes t amt)  bytes?

  t : transport?
  amt : exact-positive-integer?
TBD

procedure

(transport-read t)  any/c

  t : transport?
TBD

procedure

(transport-write-byte t b)  void?

  t : transport?
  b : byte?
TBD

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?
TBD

procedure

(transport-write t v)  void?

  t : transport?
  v : any/c
TBD

TBD

TBD

procedure

(input-transport? t)  boolean?

  t : transport?
TBD

procedure

(output-transport? t)  boolean?

  t : transport?
TBD

procedure

(flush-transport t)  void?

  t : output-transport?
TBD

procedure

(close-transport t)  any/c

  t : transport?
TBD

3.2 Buffered and Framed Transports

 (require thrift/transport/buffered) package: thrift

procedure

(open-input-buffered-transport wrapped)  input-transport?

  wrapped : input-transport?
TBD

procedure

(open-output-buffered-transport wrapped)  output-transport?

  wrapped : output-transport?
TBD

procedure

(buffered-read-length)  positive-integer?

(buffered-read-length length)  void?
  length : positive-integer?
TBD

procedure

(open-input-framed-transport wrapped)  input-transport?

  wrapped : input-transport?
TBD

procedure

(open-output-framed-transport wrapped)  output-transport?

  wrapped : output-transport?
TBD

3.3 File Transport

 (require thrift/transport/file) package: thrift

procedure

(open-input-file-transport file-path)  transport?

  file-path : string?
TBD

procedure

(open-output-file-transport file-path)  transport?

  file-path : string?
TBD

3.4 Console Transport

 (require thrift/transport/console) package: thrift

procedure

(open-input-console-transport buffer)  transport?

  buffer : bytes?
TBD

procedure

(open-output-console-transport)  transport?

TBD

3.5 In-Memory Transport

 (require thrift/transport/memory) package: thrift

procedure

(open-input-memory-transport read-buffer)  transport?

  read-buffer : bytes?
TBD

procedure

(open-output-memory-transport)  transport?

TBD

procedure

(transport-output-bytes t)  bytes?

  t : transport?
TBD