ExTectonicdb v0.1.3 ExTectonicdb.Connection View Source

Handles connection to the database socket

tdb-server uses first bit in the reply to denote success/failure, so :gen_tcp needs to connect with packet: :raw.

Incoming message format: 1 byte for success failure, 8 bytes big endian (64 bit) for length n, and n bytes for body Outgoing message format: 4 byte big endian for length n, and n bytes for body

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Callback implementation for GenServer.init/1.

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

disconnect(state, reason)

View Source
Link to this function

handle_continue(atom, state)

View Source

Callback implementation for GenServer.handle_continue/2.

Callback implementation for GenServer.init/1.

Link to this function

send_message(pid, message)

View Source