NosProtocol v1.0.0 NosProtocol.Login View Source

Processless NosTale client for the Login protocol.

Link to this section Summary

Link to this section Types

Link to this type

option()

View Source
option() :: {:encoder, module()}
Link to this type

options()

View Source
options() :: [option()]
Link to this type

packets()

View Source
packets() :: [packet()]

Link to this section Functions

Link to this function

open(socket, transport, opts \\ [])

View Source
open(:inet.socket(), module(), options()) ::
  {:ok, NosProtocol.Conn.t()} | {:error, term()}
Link to this function

stream(conn, message)

View Source
stream(NosProtocol.Conn.t(), term()) ::
  {:ok, NosProtocol.Conn.t(), packets()}
  | {:error, NosProtocol.Conn.t(), term(), packets()}
  | :unknown