deditex v0.1.0 Deditex.FakeTCP

Mock for Deditec communication.

Link to this section Summary

Link to this section Types

Link to this type ip4_address()
ip4_address() :: {0..255, 0..255, 0..255, 0..255}
Link to this type ip6_address()
ip6_address() ::
  {0..65535, 0..65535, 0..65535, 0..65535, 0..65535, 0..65535, 0..65535,
   0..65535}
Link to this type ip_address()
ip_address() :: ip4_address() | ip6_address()

Link to this section Functions

Link to this function connect(ip, port, opts)
connect(ip_address(), non_neg_integer(), [...]) :: pid()
Link to this function read_from_state(socket, package)
Link to this function recv(socket, length)
Link to this function send(socket, package)
send(port(), binary()) :: :ok | :error
Link to this function write_to_state(socket, package)