sonix v0.1.0 Sonix.Tcp View Source

TCP Connection Layer for Sonix

Link to this section Summary

Link to this section Functions

Link to this function

recv(conn, bytes \\ 0, timeout \\ 3000) View Source

Recieve response from Sonic

Examples

iex> Sonix.recv(conn)
PONG

Send any Command to Sonic

Examples

iex> Sonix.send(conn, "PING")
:ok
Link to this function

start_link(host, port, opts, timeout \\ 5000) View Source