Examples.ETcp (gt_bridge v0.19.2)

Copy Markdown View Source

I am examples for the framed TCP transport.

Each opens a real packet: 4 client against a listener on an ephemeral port, so the frames exercised here are the frames GT sends.

Summary

Functions

connect()

@spec connect() :: %{socket: :inet.socket(), req: (map() -> map())}

copy(item)

Callback implementation for ExExample.Behaviour.copy/1.

enqueue_proxy()

@spec enqueue_proxy() :: map()

enqueue_scalar()

@spec enqueue_scalar() :: map()

large_reply_is_framed_whole()

@spec large_reply_is_framed_whole() :: integer()

rerun?(_)

Callback implementation for ExExample.Behaviour.rerun?/1.

session_bindings_persist()

@spec session_bindings_persist() :: map()