Rezmq (rezmq v0.1.0)

Documentation for Rezmq.

Summary

Functions

context_new()

@spec context_new() :: Rezmq.Native.native_context()

socket_abort_read(socket)

@spec socket_abort_read(Rezmq.Native.native_socket()) :: :ok

socket_bind(socket, address)

@spec socket_bind(Rezmq.Native.native_socket(), binary()) :: :ok | {:error, integer()}

socket_connect(socket, address)

@spec socket_connect(Rezmq.Native.native_socket(), binary()) ::
  :ok | {:error, integer()}

socket_create(worker, socket_type)

@spec socket_create(Rezmq.Native.native_worker(), atom()) ::
  {:ok, Rezmq.Native.native_socket()} | {:error, integer()}

socket_destroy(socket)

@spec socket_destroy(Rezmq.Native.native_socket()) :: :ok

socket_setsockopt(socket, option_name, option_value)

@spec socket_setsockopt(Rezmq.Native.native_socket(), atom(), binary()) ::
  :ok | {:error, integer()}

socket_start_read(socket, listener, token)

@spec socket_start_read(Rezmq.Native.native_socket(), pid(), reference()) :: :ok

socket_write(socket, data)

@spec socket_write(Rezmq.Native.native_socket(), [binary()]) :: :ok | {:error, term()}

worker_start(context)

worker_stop(worker)

@spec worker_stop(Rezmq.Native.native_worker()) :: :ok